</parameters>
</function-macro>
<constant name="BUILT_FEATURES"
- value="libcurl libsoup gpgme ex-fsverity libarchive selinux openssl libmount systemd release p2p"
+ value="libsoup gpgme ex-fsverity libarchive selinux libmount systemd devel p2p"
c:type="OSTREE_BUILT_FEATURES"
version="2019.3">
<doc xml:space="preserve"
<bitfield name="ChecksumFlags"
version="2017.13"
c:type="OstreeChecksumFlags">
- <source-position filename="ostree-core.h" line="469"/>
+ <doc xml:space="preserve"
+ filename="ostree-core.h"
+ line="461">Flags influencing checksumming logic.</doc>
+ <source-position filename="ostree-core.h" line="478"/>
<member name="none" value="0" c:identifier="OSTREE_CHECKSUM_FLAGS_NONE">
+ <doc xml:space="preserve"
+ filename="ostree-core.h"
+ line="463">Default checksumming without tweaks.
+ (Since: 2017.13.)</doc>
</member>
<member name="ignore_xattrs"
value="1"
c:identifier="OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS">
+ <doc xml:space="preserve"
+ filename="ostree-core.h"
+ line="465">Ignore xattrs when checksumming.
+ (Since: 2017.13.)</doc>
+ </member>
+ <member name="canonical_permissions"
+ value="2"
+ c:identifier="OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS">
+ <doc xml:space="preserve"
+ filename="ostree-core.h"
+ line="467">Use canonical uid/gid/mode
+ values, for bare-user-only mode. (Since: 2021.4.)</doc>
</member>
</bitfield>
<class name="ChecksumInputStream"
c:symbol-prefix="commit_sizes_entry">
<doc xml:space="preserve"
filename="ostree-core.h"
- line="537">Structure representing an entry in the "ostree.sizes" commit metadata. Each
+ line="546">Structure representing an entry in the "ostree.sizes" commit metadata. Each
entry corresponds to an object in the associated commit.</doc>
- <source-position filename="ostree-core.h" line="554"/>
+ <source-position filename="ostree-core.h" line="563"/>
<field name="checksum" writable="1">
<doc xml:space="preserve"
filename="ostree-core.h"
- line="539">object checksum</doc>
+ line="548">object checksum</doc>
<type name="utf8" c:type="gchar*"/>
</field>
<field name="objtype" writable="1">
<doc xml:space="preserve"
filename="ostree-core.h"
- line="540">object type</doc>
+ line="549">object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</field>
<field name="unpacked" writable="1">
<doc xml:space="preserve"
filename="ostree-core.h"
- line="541">unpacked object size</doc>
+ line="550">unpacked object size</doc>
<type name="guint64" c:type="guint64"/>
</field>
<field name="archived" writable="1">
<doc xml:space="preserve"
filename="ostree-core.h"
- line="542">compressed object size</doc>
+ line="551">compressed object size</doc>
<type name="guint64" c:type="guint64"/>
</field>
<constructor name="new"
version="2020.1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2441">Create a new #OstreeCommitSizesEntry for representing an object in a
+ line="2449">Create a new #OstreeCommitSizesEntry for representing an object in a
commit's "ostree.sizes" metadata.</doc>
- <source-position filename="ostree-core.h" line="560"/>
+ <source-position filename="ostree-core.h" line="569"/>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2451">a new #OstreeCommitSizesEntry</doc>
+ line="2459">a new #OstreeCommitSizesEntry</doc>
<type name="CommitSizesEntry" c:type="OstreeCommitSizesEntry*"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2443">object checksum</doc>
+ line="2451">object checksum</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2444">object type</doc>
+ line="2452">object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="unpacked" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2445">unpacked object size</doc>
+ line="2453">unpacked object size</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="archived" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2446">compressed object size</doc>
+ line="2454">compressed object size</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
</parameters>
version="2020.1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2471">Create a copy of the given @entry.</doc>
- <source-position filename="ostree-core.h" line="565"/>
+ line="2479">Create a copy of the given @entry.</doc>
+ <source-position filename="ostree-core.h" line="574"/>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2477">a new copy of @entry</doc>
+ line="2485">a new copy of @entry</doc>
<type name="CommitSizesEntry" c:type="OstreeCommitSizesEntry*"/>
</return-value>
<parameters>
<instance-parameter name="entry" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2473">an #OstreeCommitSizesEntry</doc>
+ line="2481">an #OstreeCommitSizesEntry</doc>
<type name="CommitSizesEntry"
c:type="const OstreeCommitSizesEntry*"/>
</instance-parameter>
version="2020.1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2491">Free given @entry.</doc>
- <source-position filename="ostree-core.h" line="567"/>
+ line="2499">Free given @entry.</doc>
+ <source-position filename="ostree-core.h" line="576"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="entry" transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2493">an #OstreeCommitSizesEntry</doc>
+ line="2501">an #OstreeCommitSizesEntry</doc>
<type name="CommitSizesEntry" c:type="OstreeCommitSizesEntry*"/>
</instance-parameter>
</parameters>
<source-position filename="ostree-core.h" line="125"/>
<type name="utf8" c:type="gchar*"/>
</constant>
+ <constant name="GPG_KEY_GVARIANT_STRING"
+ value="(aa{sv}aa{sv}a{sv})"
+ c:type="OSTREE_GPG_KEY_GVARIANT_STRING">
+ <source-position filename="ostree-repo.h" line="1463"/>
+ <type name="utf8" c:type="gchar*"/>
+ </constant>
<function-macro name="GPG_VERIFIER"
c:identifier="OSTREE_GPG_VERIFIER"
introspectable="0">
version="2018.9">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1524">GVariant type `s`. This key can be used in the repo metadata which is stored
+ line="1644">GVariant type `s`. This key can be used in the repo metadata which is stored
in OSTREE_REPO_METADATA_REF as well as in the summary. The semantics of this
are that the remote repository wants clients to update their remote config
to add this collection ID (clients can't do P2P operations involving a
This is a replacement for the similar metadata key implemented by flatpak,
`xa.collection-id`, which is now deprecated as clients which supported it had
bugs with their P2P implementations.</doc>
- <source-position filename="ostree-repo.h" line="1545"/>
+ <source-position filename="ostree-repo.h" line="1665"/>
<type name="utf8" c:type="gchar*"/>
</constant>
<function-macro name="MUTABLE_TREE"
</member>
</enumeration>
<constant name="RELEASE_VERSION"
- value="2"
+ value="5"
c:type="OSTREE_RELEASE_VERSION"
version="2017.4">
<doc xml:space="preserve"
version="2018.6">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1501">The name of a ref which is used to store metadata for the entire repository,
+ line="1621">The name of a ref which is used to store metadata for the entire repository,
such as its expected update time (`ostree.summary.expires`), name, or new
GPG keys. Metadata is stored on contentless commits in the ref, and hence is
signed with the commits.
Users of OSTree may place arbitrary metadata in commits on this ref, but the
keys must be namespaced by product or developer. For example,
`exampleos.end-of-life`. The `ostree.` prefix is reserved.</doc>
- <source-position filename="ostree-repo.h" line="1522"/>
+ <source-position filename="ostree-repo.h" line="1642"/>
<type name="utf8" c:type="gchar*"/>
</constant>
<record name="Remote"
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1243">An accessor object for an OSTree repository located at @path</doc>
+ line="1267">An accessor object for an OSTree repository located at @path</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1241">Path to a repository</doc>
+ line="1265">Path to a repository</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
</parameters>
<constructor name="new_default" c:identifier="ostree_repo_new_default">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1316">If the current working directory appears to be an OSTree
+ line="1340">If the current working directory appears to be an OSTree
repository, create a new #OstreeRepo object for accessing it.
Otherwise use the path in the OSTREE_REPO environment variable
(if defined) or else the default system repository located at
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1325">An accessor object for an OSTree repository located at /ostree/repo</doc>
+ line="1349">An accessor object for an OSTree repository located at /ostree/repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
</constructor>
c:identifier="ostree_repo_new_for_sysroot_path">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1299">Creates a new #OstreeRepo instance, taking the system root path explicitly
+ line="1323">Creates a new #OstreeRepo instance, taking the system root path explicitly
instead of assuming "/".</doc>
<source-position filename="ostree-repo.h" line="57"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1307">An accessor object for the OSTree repository located at @repo_path.</doc>
+ line="1331">An accessor object for the OSTree repository located at @repo_path.</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<parameter name="repo_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1301">Path to a repository</doc>
+ line="1325">Path to a repository</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="sysroot_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1302">Path to the system root</doc>
+ line="1326">Path to the system root</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2582">This is a file-descriptor relative version of ostree_repo_create().
+ line="2748">This is a file-descriptor relative version of ostree_repo_create().
Create the underlying structure on disk for the repository, and call
ostree_repo_open_at() on the result, preparing it for use.
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2604">A new OSTree repository reference</doc>
+ line="2770">A new OSTree repository reference</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<parameter name="dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2584">Directory fd</doc>
+ line="2750">Directory fd</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2585">Path</doc>
+ line="2751">Path</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2586">The mode to store the repository in</doc>
+ line="2752">The mode to store the repository in</doc>
<type name="RepoMode" c:type="OstreeRepoMode"/>
</parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2587">a{sv}: See below for accepted keys</doc>
+ line="2753">a{sv}: See below for accepted keys</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2588">Cancellable</doc>
+ line="2754">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2408">a repo mode as a string</doc>
+ line="2574">a repo mode as a string</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_mode"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2409">the corresponding #OstreeRepoMode</doc>
+ line="2575">the corresponding #OstreeRepoMode</doc>
<type name="RepoMode" c:type="OstreeRepoMode*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1264">This combines ostree_repo_new() (but using fd-relative access) with
+ line="1288">This combines ostree_repo_new() (but using fd-relative access) with
ostree_repo_open(). Use this when you know you should be operating on an
already extant repository. If you want to create one, use ostree_repo_create_at().</doc>
<source-position filename="ostree-repo.h" line="70"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1273">An accessor object for an OSTree repository located at @dfd + @path</doc>
+ line="1297">An accessor object for an OSTree repository located at @dfd + @path</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<parameter name="dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1266">Directory fd</doc>
+ line="1290">Directory fd</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1267">Path</doc>
+ line="1291">Path</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
c:identifier="ostree_repo_pull_default_console_progress_changed">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4768">Convenient "changed" callback for use with
+ line="4934">Convenient "changed" callback for use with
ostree_async_progress_new_and_connect() when pulling from a remote
repository.
Compatibility note: this function previously assumed that @user_data
was a pointer to a #GSConsole instance. This is no longer the case,
and @user_data is ignored.</doc>
- <source-position filename="ostree-repo.h" line="1388"/>
+ <source-position filename="ostree-repo.h" line="1392"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameter name="progress" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4770">Async progress</doc>
+ line="4936">Async progress</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4771">User data</doc>
+ line="4937">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
line="297">This hash table is a mapping from #GVariant which can be accessed
via ostree_object_name_deserialize() to a #GVariant containing either
a similar #GVariant or and array of them, listing the parents of the key.</doc>
- <source-position filename="ostree-repo.h" line="1152"/>
+ <source-position filename="ostree-repo.h" line="1156"/>
<return-value transfer-ownership="container">
<doc xml:space="preserve"
filename="ostree-repo-traverse.c"
filename="ostree-repo-traverse.c"
line="282">This hash table is a set of #GVariant which can be accessed via
ostree_object_name_deserialize().</doc>
- <source-position filename="ostree-repo.h" line="1149"/>
+ <source-position filename="ostree-repo.h" line="1153"/>
<return-value transfer-ownership="container">
<doc xml:space="preserve"
filename="ostree-repo-traverse.c"
filename="ostree-repo-traverse.c"
line="348">Gets all the commits that a certain object belongs to, as recorded
by a parents table gotten from ostree_repo_traverse_commit_union_with_parents.</doc>
- <source-position filename="ostree-repo.h" line="1155"/>
+ <source-position filename="ostree-repo.h" line="1159"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-traverse.c"
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5139">Add a GPG signature to a summary file.</doc>
- <source-position filename="ostree-repo.h" line="1438"/>
+ line="5305">Add a GPG signature to a summary file.</doc>
+ <source-position filename="ostree-repo.h" line="1484"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5141">Self</doc>
+ line="5307">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="key_id" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5142">NULL-terminated array of GPG keys.</doc>
+ line="5308">NULL-terminated array of GPG keys.</doc>
<array c:type="const gchar**">
<type name="utf8"/>
</array>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5143">GPG home directory, or %NULL</doc>
+ line="5309">GPG home directory, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5144">A #GCancellable</doc>
+ line="5310">A #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4918">Append a GPG signature to a commit.</doc>
- <source-position filename="ostree-repo.h" line="1445"/>
+ line="5084">Append a GPG signature to a commit.</doc>
+ <source-position filename="ostree-repo.h" line="1491"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4920">Self</doc>
+ line="5086">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="commit_checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4921">SHA256 of given commit to sign</doc>
+ line="5087">SHA256 of given commit to sign</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="signature_bytes" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4922">Signature data</doc>
+ line="5088">Signature data</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4923">A #GCancellable</doc>
+ line="5089">A #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1321">Similar to ostree_repo_checkout_tree(), but uses directory-relative
+ line="1329">Similar to ostree_repo_checkout_tree(), but uses directory-relative
paths for the destination, uses a new `OstreeRepoCheckoutAtOptions`,
and takes a commit checksum and optional subpath pair, rather than
requiring use of `GFile` APIs for the caller.
Note in addition that unlike ostree_repo_checkout_tree(), the
default is not to use the repository-internal uncompressed objects
cache.</doc>
- <source-position filename="ostree-repo.h" line="1018"/>
+ <source-position filename="ostree-repo.h" line="1022"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1323">Repo</doc>
+ line="1331">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1324">Options</doc>
+ line="1332">Options</doc>
<type name="RepoCheckoutAtOptions"
c:type="OstreeRepoCheckoutAtOptions*"/>
</parameter>
<parameter name="destination_dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1325">Directory FD for destination</doc>
+ line="1333">Directory FD for destination</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="destination_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1326">Directory for destination</doc>
+ line="1334">Directory for destination</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="commit" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1327">Checksum for commit</doc>
+ line="1335">Checksum for commit</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1328">Cancellable</doc>
+ line="1336">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1460">Call this after finishing a succession of checkout operations; it
+ line="1468">Call this after finishing a succession of checkout operations; it
will delete any currently-unused uncompressed objects from the
cache.</doc>
- <source-position filename="ostree-repo.h" line="1027"/>
+ <source-position filename="ostree-repo.h" line="1031"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1462">Repo</doc>
+ line="1470">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1463">Cancellable</doc>
+ line="1471">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1239">Check out @source into @destination, which must live on the
+ line="1247">Check out @source into @destination, which must live on the
physical filesystem. @source may be any subdirectory of a given
commit. The @mode and @overwrite_mode allow control over how the
files are checked out.</doc>
- <source-position filename="ostree-repo.h" line="933"/>
+ <source-position filename="ostree-repo.h" line="937"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1241">Repo</doc>
+ line="1249">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1242">Options controlling all files</doc>
+ line="1250">Options controlling all files</doc>
<type name="RepoCheckoutMode" c:type="OstreeRepoCheckoutMode"/>
</parameter>
<parameter name="overwrite_mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1243">Whether or not to overwrite files</doc>
+ line="1251">Whether or not to overwrite files</doc>
<type name="RepoCheckoutOverwriteMode"
c:type="OstreeRepoCheckoutOverwriteMode"/>
</parameter>
<parameter name="destination" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1244">Place tree here</doc>
+ line="1252">Place tree here</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1245">Source tree</doc>
+ line="1253">Source tree</doc>
<type name="RepoFile" c:type="OstreeRepoFile*"/>
</parameter>
<parameter name="source_info" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1246">Source info</doc>
+ line="1254">Source info</doc>
<type name="Gio.FileInfo" c:type="GFileInfo*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1247">Cancellable</doc>
+ line="1255">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1278">Similar to ostree_repo_checkout_tree(), but uses directory-relative
+ line="1286">Similar to ostree_repo_checkout_tree(), but uses directory-relative
paths for the destination, uses a new `OstreeRepoCheckoutAtOptions`,
and takes a commit checksum and optional subpath pair, rather than
requiring use of `GFile` APIs for the caller.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1280">Repo</doc>
+ line="1288">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1281">Options</doc>
+ line="1289">Options</doc>
<type name="RepoCheckoutOptions"
c:type="OstreeRepoCheckoutOptions*"/>
</parameter>
<parameter name="destination_dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1282">Directory FD for destination</doc>
+ line="1290">Directory FD for destination</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="destination_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1283">Directory for destination</doc>
+ line="1291">Directory for destination</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="commit" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1284">Checksum for commit</doc>
+ line="1292">Checksum for commit</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1285">Cancellable</doc>
+ line="1293">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1444">A newly-allocated copy of the repository config</doc>
+ line="1468">A newly-allocated copy of the repository config</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</return-value>
<parameters>
<method name="create" c:identifier="ostree_repo_create" throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2534">Create the underlying structure on disk for the repository, and call
+ line="2700">Create the underlying structure on disk for the repository, and call
ostree_repo_open() on the result, preparing it for use.
Since version 2016.8, this function will succeed on an existing
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2536">An #OstreeRepo</doc>
+ line="2702">An #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2537">The mode to store the repository in</doc>
+ line="2703">The mode to store the repository in</doc>
<type name="RepoMode" c:type="OstreeRepoMode"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2538">Cancellable</doc>
+ line="2704">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4212">Remove the object of type @objtype with checksum @sha256
+ line="4378">Remove the object of type @objtype with checksum @sha256
from the repository. An error of type %G_IO_ERROR_NOT_FOUND
is thrown if the object does not exist.</doc>
<source-position filename="ostree-repo.h" line="639"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4214">Repo</doc>
+ line="4380">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4215">Object type</doc>
+ line="4381">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="sha256" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4216">Checksum</doc>
+ line="4382">Checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4217">Cancellable</doc>
+ line="4383">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<method name="equal" c:identifier="ostree_repo_equal" version="2017.12">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3482">Check whether two opened repositories are the same on disk: if their root
+ line="3648">Check whether two opened repositories are the same on disk: if their root
directories are the same inode. If @a or @b are not open yet (due to
ostree_repo_open() not being called on them yet), %FALSE will be returned.</doc>
<source-position filename="ostree-repo.h" line="131"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3491">%TRUE if @a and @b are the same repository on disk, %FALSE otherwise</doc>
+ line="3657">%TRUE if @a and @b are the same repository on disk, %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="a" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3484">an #OstreeRepo</doc>
+ line="3650">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="b" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3485">an #OstreeRepo</doc>
+ line="3651">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
</parameters>
filename="ostree-repo-libarchive.c"
line="1254">Import an archive file @archive into the repository, and write its
file structure to @mtree.</doc>
- <source-position filename="ostree-repo.h" line="856"/>
+ <source-position filename="ostree-repo.h" line="860"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
version="2018.6">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5408">Find reachable remote URIs which claim to provide any of the given named
+ line="5426">Find reachable remote URIs which claim to provide any of the given named
@refs. This will search for configured remotes (#OstreeRepoFinderConfig),
mounted volumes (#OstreeRepoFinderMount) and (if enabled at compile time)
local network peers (#OstreeRepoFinderAvahi). In order to use a custom
GPG verification of commits will be used unconditionally.
This will use the thread-default #GMainContext, but will not iterate it.</doc>
- <source-position filename="ostree-repo.h" line="1347"/>
+ <source-position filename="ostree-repo.h" line="1351"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5410">an #OstreeRepo</doc>
+ line="5428">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="refs" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5411">non-empty array of collection–ref pairs to find remotes for</doc>
+ line="5429">non-empty array of collection–ref pairs to find remotes for</doc>
<array c:type="const OstreeCollectionRef* const*">
<type name="CollectionRef" c:type="OstreeCollectionRef*"/>
</array>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5412">a GVariant `a{sv}` with an extensible set of flags</doc>
+ line="5430">a GVariant `a{sv}` with an extensible set of flags</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="finders" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5413">non-empty array of
+ line="5431">non-empty array of
#OstreeRepoFinder instances to use, or %NULL to use the system defaults</doc>
<array c:type="OstreeRepoFinder**">
<type name="RepoFinder" c:type="OstreeRepoFinder*"/>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5415">an #OstreeAsyncProgress to update with the operation’s
+ line="5433">an #OstreeAsyncProgress to update with the operation’s
progress, or %NULL</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5417">a #GCancellable, or %NULL</doc>
+ line="5435">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
closure="6">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5418">asynchronous completion callback</doc>
+ line="5436">asynchronous completion callback</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="5419">data to pass to @callback</doc>
+ line="5437">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6207">Finish an asynchronous pull operation started with
+ line="6225">Finish an asynchronous pull operation started with
ostree_repo_find_remotes_async().</doc>
- <source-position filename="ostree-repo.h" line="1356"/>
+ <source-position filename="ostree-repo.h" line="1360"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6216">a potentially empty array
+ line="6234">a potentially empty array
of #OstreeRepoFinderResults, followed by a %NULL terminator element; or
%NULL on error</doc>
<array c:type="OstreeRepoFinderResult**">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6209">an #OstreeRepo</doc>
+ line="6227">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6210">the asynchronous result</doc>
+ line="6228">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4328">Verify consistency of the object; this performs checks only relevant to the
+ line="4494">Verify consistency of the object; this performs checks only relevant to the
immediate object itself, such as checksumming. This API call will not itself
traverse metadata objects for example.</doc>
<source-position filename="ostree-repo.h" line="646"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4330">Repo</doc>
+ line="4496">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4331">Object type</doc>
+ line="4497">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="sha256" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4332">Checksum</doc>
+ line="4498">Checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4333">Cancellable</doc>
+ line="4499">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
version="2019.2">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6298">Get the bootloader configured. See the documentation for the
+ line="6488">Get the bootloader configured. See the documentation for the
"sysroot.bootloader" config key.</doc>
<source-position filename="ostree-repo.h" line="120"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6305">bootloader configuration for the sysroot</doc>
+ line="6495">bootloader configuration for the sysroot</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6300">an #OstreeRepo</doc>
+ line="6490">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
version="2018.6">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6226">Get the collection ID of this repository. See [collection IDs][collection-ids].</doc>
+ line="6416">Get the collection ID of this repository. See [collection IDs][collection-ids].</doc>
<source-position filename="ostree-repo.h" line="110"/>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6232">collection ID for the repository</doc>
+ line="6422">collection ID for the repository</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6228">an #OstreeRepo</doc>
+ line="6418">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1430">The repository configuration; do not modify</doc>
+ line="1454">The repository configuration; do not modify</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</return-value>
<parameters>
version="2018.9">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6279">Get the set of default repo finders configured. See the documentation for
+ line="6469">Get the set of default repo finders configured. See the documentation for
the "core.default-repo-finders" config key.</doc>
<source-position filename="ostree-repo.h" line="117"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6286">
+ line="6476">
%NULL-terminated array of strings.</doc>
<array c:type="const gchar* const*">
<type name="utf8"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6281">an #OstreeRepo</doc>
+ line="6471">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
version="2016.4">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3433">In some cases it's useful for applications to access the repository
+ line="3599">In some cases it's useful for applications to access the repository
directly; for example, writing content into `repo/tmp` ensures it's
on the same filesystem. Another case is detecting the mtime on the
repository (to see whether a ref was written).</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3442">File descriptor for repository root - owned by @self</doc>
+ line="3608">File descriptor for repository root - owned by @self</doc>
<type name="gint" c:type="int"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3435">Repo</doc>
+ line="3601">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
c:identifier="ostree_repo_get_disable_fsync">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3380">For more information see ostree_repo_set_disable_fsync().</doc>
+ line="3546">For more information see ostree_repo_set_disable_fsync().</doc>
<source-position filename="ostree-repo.h" line="87"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3386">Whether or not fsync() is enabled for this repo.</doc>
+ line="3552">Whether or not fsync() is enabled for this repo.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3382">An #OstreeRepo</doc>
+ line="3548">An #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3515">Determine the number of bytes of free disk space that are reserved according
+ line="3681">Determine the number of bytes of free disk space that are reserved according
to the repo config and return that number in @out_reserved_bytes. See the
documentation for the core.min-free-space-size and
core.min-free-space-percent repo config options.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3526">%TRUE on success, %FALSE otherwise.</doc>
+ line="3692">%TRUE on success, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3517">Repo</doc>
+ line="3683">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="out_reserved_bytes"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3518">Location to store the result</doc>
+ line="3684">Location to store the result</doc>
<type name="guint64" c:type="guint64*"/>
</parameter>
</parameters>
<method name="get_parent" c:identifier="ostree_repo_get_parent">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3542">Before this function can be used, ostree_repo_init() must have been
+ line="3708">Before this function can be used, ostree_repo_init() must have been
called.</doc>
<source-position filename="ostree-repo.h" line="245"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3549">Parent repository, or %NULL if none</doc>
+ line="3715">Parent repository, or %NULL if none</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3544">Repo</doc>
+ line="3710">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
<method name="get_path" c:identifier="ostree_repo_get_path">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3411">Note that since the introduction of ostree_repo_open_at(), this function may
+ line="3577">Note that since the introduction of ostree_repo_open_at(), this function may
return a process-specific path in `/proc` if the repository was created using
that API. In general, you should avoid use of this API.</doc>
<source-position filename="ostree-repo.h" line="123"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3419">Path to repo</doc>
+ line="3585">Path to repo</doc>
<type name="Gio.File" c:type="GFile*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3413">Repo</doc>
+ line="3579">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="936">OSTree remotes are represented by keyfile groups, formatted like:
+ line="963">OSTree remotes are represented by keyfile groups, formatted like:
`[remote "remotename"]`. This function returns a value named @option_name
underneath that group, and returns it as a boolean.
If the option is not set, @out_value will be set to @default_value. If an
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="951">%TRUE on success, otherwise %FALSE with @error set</doc>
+ line="978">%TRUE on success, otherwise %FALSE with @error set</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="938">A OstreeRepo</doc>
+ line="965">A OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="939">Name</doc>
+ line="966">Name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="option_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="940">Option</doc>
+ line="967">Option</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="default_value" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="941">Value returned if @option_name is not present</doc>
+ line="968">Value returned if @option_name is not present</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="out_value"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="942">location to store the result.</doc>
+ line="969">location to store the result.</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="858">OSTree remotes are represented by keyfile groups, formatted like:
+ line="885">OSTree remotes are represented by keyfile groups, formatted like:
`[remote "remotename"]`. This function returns a value named @option_name
underneath that group, and returns it as a zero terminated array of strings.
If the option is not set, or if an error is returned, @out_value will be set
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="874">%TRUE on success, otherwise %FALSE with @error set</doc>
+ line="901">%TRUE on success, otherwise %FALSE with @error set</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="860">A OstreeRepo</doc>
+ line="887">A OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="861">Name</doc>
+ line="888">Name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="option_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="862">Option</doc>
+ line="889">Option</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_value"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="863">location to store the list
+ line="890">location to store the list
of strings. The list should be freed with
g_strfreev().</doc>
<array c:type="char***">
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="780">OSTree remotes are represented by keyfile groups, formatted like:
+ line="807">OSTree remotes are represented by keyfile groups, formatted like:
`[remote "remotename"]`. This function returns a value named @option_name
underneath that group, or @default_value if the remote exists but not the
option name. If an error is returned, @out_value will be set to %NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="794">%TRUE on success, otherwise %FALSE with @error set</doc>
+ line="821">%TRUE on success, otherwise %FALSE with @error set</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="782">A OstreeRepo</doc>
+ line="809">A OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="783">Name</doc>
+ line="810">Name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="option_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="784">Option</doc>
+ line="811">Option</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="default_value"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="785">Value returned if @option_name is not present</doc>
+ line="812">Value returned if @option_name is not present</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_value"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="786">Return location for value</doc>
+ line="813">Return location for value</doc>
<type name="utf8" c:type="char**"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5205">Sign the given @data with the specified keys in @key_id. Similar to
+ line="5371">Sign the given @data with the specified keys in @key_id. Similar to
ostree_repo_add_gpg_signature_summary() but can be used on any
data.
You can use ostree_repo_gpg_verify_data() to verify the signatures.</doc>
- <source-position filename="ostree-repo.h" line="1452"/>
+ <source-position filename="ostree-repo.h" line="1498"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5222">@TRUE if @data has been signed successfully,
+ line="5388">@TRUE if @data has been signed successfully,
@FALSE in case of error (@error will contain the reason).</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5207">Self</doc>
+ line="5373">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5208">Data as a #GBytes</doc>
+ line="5374">Data as a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="old_signatures" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5209">Existing signatures to append to (or %NULL)</doc>
+ line="5375">Existing signatures to append to (or %NULL)</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="key_id" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5210">NULL-terminated array of GPG keys.</doc>
+ line="5376">NULL-terminated array of GPG keys.</doc>
<array c:type="const gchar**">
<type name="utf8"/>
</array>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5211">GPG home directory, or %NULL</doc>
+ line="5377">GPG home directory, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="out_signatures"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5212">in case of success will contain signature</doc>
+ line="5378">in case of success will contain signature</doc>
<type name="GLib.Bytes" c:type="GBytes**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5213">A #GCancellable</doc>
+ line="5379">A #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5612">Verify @signatures for @data using GPG keys in the keyring for
+ line="5802">Verify @signatures for @data using GPG keys in the keyring for
@remote_name, and return an #OstreeGpgVerifyResult.
The @remote_name parameter can be %NULL. In that case it will do
the verifications using GPG keys in the keyrings of all remotes.</doc>
- <source-position filename="ostree-repo.h" line="1478"/>
+ <source-position filename="ostree-repo.h" line="1524"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5629">an #OstreeGpgVerifyResult, or %NULL on error</doc>
+ line="5819">an #OstreeGpgVerifyResult, or %NULL on error</doc>
<type name="GpgVerifyResult" c:type="OstreeGpgVerifyResult*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5614">Repository</doc>
+ line="5804">Repository</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5615">Name of remote</doc>
+ line="5805">Name of remote</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5616">Data as a #GBytes</doc>
+ line="5806">Data as a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="signatures" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5617">Signatures as a #GBytes</doc>
+ line="5807">Signatures as a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="keyringdir"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5618">Path to directory GPG keyrings; overrides built-in default if given</doc>
+ line="5808">Path to directory GPG keyrings; overrides built-in default if given</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="extra_keyring"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5619">Path to additional keyring file (not a directory)</doc>
+ line="5809">Path to additional keyring file (not a directory)</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5620">Cancellable</doc>
+ line="5810">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4170">Set @out_have_object to %TRUE if @self contains the given object;
+ line="4336">Set @out_have_object to %TRUE if @self contains the given object;
%FALSE otherwise.</doc>
<source-position filename="ostree-repo.h" line="386"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4182">%FALSE if an unexpected error occurred, %TRUE otherwise</doc>
+ line="4348">%FALSE if an unexpected error occurred, %TRUE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4172">Repo</doc>
+ line="4338">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4173">Object type</doc>
+ line="4339">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4174">ASCII SHA256 checksum</doc>
+ line="4340">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_have_object"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4175">%TRUE if repository contains object</doc>
+ line="4341">%TRUE if repository contains object</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4176">Cancellable</doc>
+ line="4342">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<method name="hash" c:identifier="ostree_repo_hash" version="2017.12">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3452">Calculate a hash value for the given open repository, suitable for use when
+ line="3618">Calculate a hash value for the given open repository, suitable for use when
putting it into a hash table. It is an error to call this on an #OstreeRepo
which is not yet open, as a persistent hash value cannot be calculated until
the repository is open and the inode of its root directory has been loaded.
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3463">hash value for the #OstreeRepo</doc>
+ line="3629">hash value for the #OstreeRepo</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3454">an #OstreeRepo</doc>
+ line="3620">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
filename="ostree-repo-libarchive.c"
line="840">Import an archive file @archive into the repository, and write its
file structure to @mtree.</doc>
- <source-position filename="ostree-repo.h" line="826"/>
+ <source-position filename="ostree-repo.h" line="830"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4355">Copy object named by @objtype and @checksum into @self from the
+ line="4521">Copy object named by @objtype and @checksum into @self from the
source repository @source. If both repositories are of the same
type and on the same filesystem, this will simply be a fast Unix
hard link operation.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4357">Destination repo</doc>
+ line="4523">Destination repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4358">Source repo</doc>
+ line="4524">Source repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4359">Object type</doc>
+ line="4525">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4360">checksum</doc>
+ line="4526">checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4361">Cancellable</doc>
+ line="4527">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4384">Copy object named by @objtype and @checksum into @self from the
+ line="4550">Copy object named by @objtype and @checksum into @self from the
source repository @source. If @trusted is %TRUE and both
repositories are of the same type and on the same filesystem,
this will simply be a fast Unix hard link operation.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4386">Destination repo</doc>
+ line="4552">Destination repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4387">Source repo</doc>
+ line="4553">Source repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4388">Object type</doc>
+ line="4554">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4389">checksum</doc>
+ line="4555">checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="trusted" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4390">If %TRUE, assume the source repo is valid and trusted</doc>
+ line="4556">If %TRUE, assume the source repo is valid and trusted</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4391">Cancellable</doc>
+ line="4557">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1354">%TRUE if this repository is the root-owned system global repository</doc>
+ line="1378">%TRUE if this repository is the root-owned system global repository</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="repo" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1352">Repository</doc>
+ line="1376">Repository</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1384">Returns whether the repository is writable by the current user.
+ line="1408">Returns whether the repository is writable by the current user.
If the repository is not writable, the @error indicates why.</doc>
<source-position filename="ostree-repo.h" line="93"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1392">%TRUE if this repository is writable</doc>
+ line="1416">%TRUE if this repository is writable</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1386">Repo</doc>
+ line="1410">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
</parameters>
%OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES in @flags. Similarly use
%OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS to exclude refs from
`refs/mirrors`.</doc>
- <source-position filename="ostree-repo.h" line="1380"/>
+ <source-position filename="ostree-repo.h" line="1384"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-refs.c"
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4578">This function synchronously enumerates all commit objects starting
+ line="4744">This function synchronously enumerates all commit objects starting
with @start, returning data in @out_commits.</doc>
- <source-position filename="ostree-repo.h" line="1069"/>
+ <source-position filename="ostree-repo.h" line="1073"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4590">%TRUE on success, %FALSE on error, and @error will be set</doc>
+ line="4756">%TRUE on success, %FALSE on error, and @error will be set</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4580">Repo</doc>
+ line="4746">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="start" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4581">List commits starting with this checksum</doc>
+ line="4747">List commits starting with this checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_commits"
transfer-ownership="container">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4582">
+ line="4748">
Map of serialized commit name to variant data</doc>
<type name="GLib.HashTable" c:type="GHashTable**">
<type name="GLib.Variant"/>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4584">Cancellable</doc>
+ line="4750">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4524">This function synchronously enumerates all objects in the
+ line="4690">This function synchronously enumerates all objects in the
repository, returning data in @out_objects. @out_objects
maps from keys returned by ostree_object_name_serialize()
to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE.</doc>
- <source-position filename="ostree-repo.h" line="1062"/>
+ <source-position filename="ostree-repo.h" line="1066"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4538">%TRUE on success, %FALSE on error, and @error will be set</doc>
+ line="4704">%TRUE on success, %FALSE on error, and @error will be set</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4526">Repo</doc>
+ line="4692">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4527">Flags controlling enumeration</doc>
+ line="4693">Flags controlling enumeration</doc>
<type name="RepoListObjectsFlags"
c:type="OstreeRepoListObjectsFlags"/>
</parameter>
transfer-ownership="container">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4528">
+ line="4694">
Map of serialized object name to variant data</doc>
<type name="GLib.HashTable" c:type="GHashTable**">
<type name="GLib.Variant"/>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4530">Cancellable</doc>
+ line="4696">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
filename="ostree-repo-static-delta-core.c"
line="171">This function synchronously enumerates all static delta indexes in the
repository, returning its result in @out_indexes.</doc>
- <source-position filename="ostree-repo.h" line="1082"/>
+ <source-position filename="ostree-repo.h" line="1086"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
filename="ostree-repo-static-delta-core.c"
line="80">This function synchronously enumerates all static deltas in the
repository, returning its result in @out_deltas.</doc>
- <source-position filename="ostree-repo.h" line="1076"/>
+ <source-position filename="ostree-repo.h" line="1080"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4500">A version of ostree_repo_load_variant() specialized to commits,
+ line="4666">A version of ostree_repo_load_variant() specialized to commits,
capable of returning extended state information. Currently
the only extended state is %OSTREE_REPO_COMMIT_STATE_PARTIAL, which
means that only a sub-path of the commit is available.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4502">Repo</doc>
+ line="4668">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4503">Commit checksum</doc>
+ line="4669">Commit checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_commit"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4504">Commit</doc>
+ line="4670">Commit</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
<parameter name="out_state"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4505">Commit state</doc>
+ line="4671">Commit state</doc>
<type name="RepoCommitState" c:type="OstreeRepoCommitState*"/>
</parameter>
</parameters>
<method name="load_file" c:identifier="ostree_repo_load_file" throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4009">Load content object, decomposing it into three parts: the actual
+ line="4175">Load content object, decomposing it into three parts: the actual
content (for regular files), the metadata, and extended attributes.</doc>
<source-position filename="ostree-repo.h" line="597"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4011">Repo</doc>
+ line="4177">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4012">ASCII SHA256 checksum</doc>
+ line="4178">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_input"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4013">File content</doc>
+ line="4179">File content</doc>
<type name="Gio.InputStream" c:type="GInputStream**"/>
</parameter>
<parameter name="out_file_info"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4014">File information</doc>
+ line="4180">File information</doc>
<type name="Gio.FileInfo" c:type="GFileInfo**"/>
</parameter>
<parameter name="out_xattrs"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4015">Extended attributes</doc>
+ line="4181">Extended attributes</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4016">Cancellable</doc>
+ line="4182">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4070">Load object as a stream; useful when copying objects between
+ line="4236">Load object as a stream; useful when copying objects between
repositories.</doc>
<source-position filename="ostree-repo.h" line="606"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4072">Repo</doc>
+ line="4238">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4073">Object type</doc>
+ line="4239">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4074">ASCII SHA256 checksum</doc>
+ line="4240">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_input"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4075">Stream for object</doc>
+ line="4241">Stream for object</doc>
<type name="Gio.InputStream" c:type="GInputStream**"/>
</parameter>
<parameter name="out_size"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4076">Length of @out_input</doc>
+ line="4242">Length of @out_input</doc>
<type name="guint64" c:type="guint64*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4077">Cancellable</doc>
+ line="4243">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4478">Load the metadata object @sha256 of type @objtype, storing the
+ line="4644">Load the metadata object @sha256 of type @objtype, storing the
result in @out_variant.</doc>
<source-position filename="ostree-repo.h" line="576"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4480">Repo</doc>
+ line="4646">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4481">Expected object type</doc>
+ line="4647">Expected object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="sha256" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4482">Checksum string</doc>
+ line="4648">Checksum string</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_variant"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4483">Metadata object</doc>
+ line="4649">Metadata object</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4454">Attempt to load the metadata object @sha256 of type @objtype if it
+ line="4620">Attempt to load the metadata object @sha256 of type @objtype if it
exists, storing the result in @out_variant. If it doesn't exist,
@out_variant will be set to %NULL and the function will still
return TRUE.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4456">Repo</doc>
+ line="4622">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4457">Object type</doc>
+ line="4623">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="sha256" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4458">ASCII checksum</doc>
+ line="4624">ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_variant"
nullable="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4459">Metadata</doc>
+ line="4625">Metadata</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
</parameters>
</method>
+ <method name="lock_pop"
+ c:identifier="ostree_repo_lock_pop"
+ version="2021.3"
+ throws="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="551">Release a lock of type @lock_type from the lock state. If the lock state
+becomes empty, the repository is unlocked. Otherwise, the lock state only
+changes when transitioning from an exclusive lock back to a shared lock. The
+requested @lock_type must be the same type that was requested in the call to
+ostree_repo_lock_push(). It is a programmer error if these do not match and
+the program may abort if the lock would reach an invalid state.
+
+ostree_repo_lock_pop() waits for the lock depending on the repository's
+lock-timeout-secs configuration. When lock-timeout-secs is -1, a blocking lock is
+attempted. Otherwise, the lock is removed non-blocking and
+ostree_repo_lock_pop() will sleep synchronously up to lock-timeout-secs seconds
+attempting to remove the lock. If the lock cannot be removed within the
+timeout, a %G_IO_ERROR_WOULD_BLOCK error is returned.
+
+If @self is not writable by the user, then no unlocking is attempted and
+%TRUE is returned.</doc>
+ <source-position filename="ostree-repo.h" line="1591"/>
+ <return-value transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="575">%TRUE on success, otherwise %FALSE with @error set</doc>
+ <type name="gboolean" c:type="gboolean"/>
+ </return-value>
+ <parameters>
+ <instance-parameter name="self" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="553">a #OstreeRepo</doc>
+ <type name="Repo" c:type="OstreeRepo*"/>
+ </instance-parameter>
+ <parameter name="lock_type" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="554">the type of lock to release</doc>
+ <type name="RepoLockType" c:type="OstreeRepoLockType"/>
+ </parameter>
+ <parameter name="cancellable"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="555">a #GCancellable</doc>
+ <type name="Gio.Cancellable" c:type="GCancellable*"/>
+ </parameter>
+ </parameters>
+ </method>
+ <method name="lock_push"
+ c:identifier="ostree_repo_lock_push"
+ version="2021.3"
+ throws="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="456">Takes a lock on the repository and adds it to the lock state. If @lock_type
+is %OSTREE_REPO_LOCK_SHARED, a shared lock is taken. If @lock_type is
+%OSTREE_REPO_LOCK_EXCLUSIVE, an exclusive lock is taken. The actual lock
+state is only changed when locking a previously unlocked repository or
+upgrading the lock from shared to exclusive. If the requested lock type is
+unchanged or would represent a downgrade (exclusive to shared), the lock
+state is not changed.
+
+ostree_repo_lock_push() waits for the lock depending on the repository's
+lock-timeout-secs configuration. When lock-timeout-secs is -1, a blocking lock is
+attempted. Otherwise, the lock is taken non-blocking and
+ostree_repo_lock_push() will sleep synchronously up to lock-timeout-secs seconds
+attempting to acquire the lock. If the lock cannot be acquired within the
+timeout, a %G_IO_ERROR_WOULD_BLOCK error is returned.
+
+If @self is not writable by the user, then no locking is attempted and
+%TRUE is returned.</doc>
+ <source-position filename="ostree-repo.h" line="1586"/>
+ <return-value transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="481">%TRUE on success, otherwise %FALSE with @error set</doc>
+ <type name="gboolean" c:type="gboolean"/>
+ </return-value>
+ <parameters>
+ <instance-parameter name="self" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="458">a #OstreeRepo</doc>
+ <type name="Repo" c:type="OstreeRepo*"/>
+ </instance-parameter>
+ <parameter name="lock_type" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="459">the type of lock to acquire</doc>
+ <type name="RepoLockType" c:type="OstreeRepoLockType"/>
+ </parameter>
+ <parameter name="cancellable"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="460">a #GCancellable</doc>
+ <type name="Gio.Cancellable" c:type="GCancellable*"/>
+ </parameter>
+ </parameters>
+ </method>
<method name="mark_commit_partial"
c:identifier="ostree_repo_mark_commit_partial"
version="2017.15"
deleting them.
Locking: exclusive</doc>
- <source-position filename="ostree-repo.h" line="1260"/>
+ <source-position filename="ostree-repo.h" line="1264"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
statistics on objects that would be deleted, without actually deleting them.
Locking: exclusive</doc>
- <source-position filename="ostree-repo.h" line="1292"/>
+ <source-position filename="ostree-repo.h" line="1296"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
deleted.
Locking: exclusive</doc>
- <source-position filename="ostree-repo.h" line="1255"/>
+ <source-position filename="ostree-repo.h" line="1259"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<method name="pull" c:identifier="ostree_repo_pull" throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4656">Connect to the remote repository, fetching the specified set of
+ line="4822">Connect to the remote repository, fetching the specified set of
refs @refs_to_fetch. For each ref that is changed, download the
commit, all metadata, and all content objects, storing them safely
on disk in @self.
which is a bug, but kept for compatibility reasons. If you want to
avoid this, use g_main_context_push_thread_default() to push a new
one around this call.</doc>
- <source-position filename="ostree-repo.h" line="1319"/>
+ <source-position filename="ostree-repo.h" line="1323"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4658">Repo</doc>
+ line="4824">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4659">Name of remote</doc>
+ line="4825">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="refs_to_fetch"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4660">Optional list of refs; if %NULL, fetch all configured refs</doc>
+ line="4826">Optional list of refs; if %NULL, fetch all configured refs</doc>
<array c:type="char**">
<type name="utf8"/>
</array>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4661">Options controlling fetch behavior</doc>
+ line="4827">Options controlling fetch behavior</doc>
<type name="RepoPullFlags" c:type="OstreeRepoPullFlags"/>
</parameter>
<parameter name="progress"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4662">Progress</doc>
+ line="4828">Progress</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4663">Cancellable</doc>
+ line="4829">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
version="2018.6">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6255">Pull refs from multiple remotes which have been found using
+ line="6273">Pull refs from multiple remotes which have been found using
ostree_repo_find_remotes_async().
@results are expected to be in priority order, with the best remotes to pull
not being pulled will be ignored and any ref without a keyring remote
will be verified with the keyring of the remote being pulled from.
Since: 2019.2</doc>
- <source-position filename="ostree-repo.h" line="1361"/>
+ <source-position filename="ostree-repo.h" line="1365"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6257">an #OstreeRepo</doc>
+ line="6275">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="results" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6258">%NULL-terminated array of remotes to
+ line="6276">%NULL-terminated array of remotes to
pull from, including the refs to pull from each</doc>
<array c:type="const OstreeRepoFinderResult* const*">
<type name="RepoFinderResult" c:type="OstreeRepoFinderResult*"/>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6260">A GVariant `a{sv}` with an extensible set of flags</doc>
+ line="6278">A GVariant `a{sv}` with an extensible set of flags</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="progress"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6261">an #OstreeAsyncProgress to update with the operation’s
+ line="6279">an #OstreeAsyncProgress to update with the operation’s
progress, or %NULL</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6263">a #GCancellable, or %NULL</doc>
+ line="6281">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
closure="5">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6264">asynchronous completion callback</doc>
+ line="6282">asynchronous completion callback</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6265">data to pass to @callback</doc>
+ line="6283">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6508">Finish an asynchronous pull operation started with
+ line="6526">Finish an asynchronous pull operation started with
ostree_repo_pull_from_remotes_async().</doc>
- <source-position filename="ostree-repo.h" line="1369"/>
+ <source-position filename="ostree-repo.h" line="1373"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6517">%TRUE on success, %FALSE otherwise</doc>
+ line="6535">%TRUE on success, %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6510">an #OstreeRepo</doc>
+ line="6528">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6511">the asynchronous result</doc>
+ line="6529">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4695">This is similar to ostree_repo_pull(), but only fetches a single
+ line="4861">This is similar to ostree_repo_pull(), but only fetches a single
subpath.</doc>
- <source-position filename="ostree-repo.h" line="1329"/>
+ <source-position filename="ostree-repo.h" line="1333"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4697">Repo</doc>
+ line="4863">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4698">Name of remote</doc>
+ line="4864">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="dir_to_pull" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4699">Subdirectory path</doc>
+ line="4865">Subdirectory path</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="refs_to_fetch"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4700">Optional list of refs; if %NULL, fetch all configured refs</doc>
+ line="4866">Optional list of refs; if %NULL, fetch all configured refs</doc>
<array c:type="char**">
<type name="utf8"/>
</array>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4701">Options controlling fetch behavior</doc>
+ line="4867">Options controlling fetch behavior</doc>
<type name="RepoPullFlags" c:type="OstreeRepoPullFlags"/>
</parameter>
<parameter name="progress"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4702">Progress</doc>
+ line="4868">Progress</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4703">Cancellable</doc>
+ line="4869">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3647">Like ostree_repo_pull(), but supports an extensible set of flags.
+ line="3650">Like ostree_repo_pull(), but supports an extensible set of flags.
The following are currently defined:
* `refs` (`as`): Array of string refs
is specified, `summary-bytes` must also be specified. Since: 2020.5
* `disable-verify-bindings` (`b`): Disable verification of commit bindings.
Since: 2020.9</doc>
- <source-position filename="ostree-repo.h" line="1339"/>
+ <source-position filename="ostree-repo.h" line="1343"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3649">Repo</doc>
+ line="3652">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name_or_baseurl" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3650">Name of remote or file:// url</doc>
+ line="3653">Name of remote or file:// url</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="options" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3651">A GVariant a{sv} with an extensible set of flags.</doc>
+ line="3654">A GVariant a{sv} with an extensible set of flags.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="progress"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3652">Progress</doc>
+ line="3655">Progress</doc>
<type name="AsyncProgress" c:type="OstreeAsyncProgress*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="3653">Cancellable</doc>
+ line="3656">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4418">Return the size in bytes of object with checksum @sha256, after any
+ line="4584">Return the size in bytes of object with checksum @sha256, after any
compression has been applied.</doc>
<source-position filename="ostree-repo.h" line="615"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4420">Repo</doc>
+ line="4586">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4421">Object type</doc>
+ line="4587">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="sha256" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4422">Checksum</doc>
+ line="4588">Checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_size"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4423">Size in bytes object occupies physically</doc>
+ line="4589">Size in bytes object occupies physically</doc>
<type name="guint64" c:type="guint64*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4424">Cancellable</doc>
+ line="4590">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4621">Load the content for @rev into @out_root.</doc>
- <source-position filename="ostree-repo.h" line="1032"/>
+ line="4787">Load the content for @rev into @out_root.</doc>
+ <source-position filename="ostree-repo.h" line="1036"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4623">Repo</doc>
+ line="4789">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="ref" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4624">Ref or ASCII checksum</doc>
+ line="4790">Ref or ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_root"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4625">An #OstreeRepoFile corresponding to the root</doc>
+ line="4791">An #OstreeRepoFile corresponding to the root</doc>
<type name="Gio.File" c:type="GFile**"/>
</parameter>
<parameter name="out_commit"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4626">The resolved commit checksum</doc>
+ line="4792">The resolved commit checksum</doc>
<type name="utf8" c:type="char**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="4627">Cancellable</doc>
+ line="4793">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3095">OSTree commits can have arbitrary metadata associated; this
+ line="3116">OSTree commits can have arbitrary metadata associated; this
function retrieves them. If none exists, @out_metadata will be set
to %NULL.</doc>
- <source-position filename="ostree-repo.h" line="894"/>
+ <source-position filename="ostree-repo.h" line="898"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3097">Repo</doc>
+ line="3118">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3098">ASCII SHA256 commit checksum</doc>
+ line="3119">ASCII SHA256 commit checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_metadata"
direction="out"
caller-allocates="0"
- transfer-ownership="full">
+ transfer-ownership="full"
+ nullable="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3099">Metadata associated with commit in with format "a{sv}", or %NULL if none exists</doc>
+ line="3120">Metadata associated with commit in with format "a{sv}", or %NULL if none exists</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3100">Cancellable</doc>
+ line="3121">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5753">An OSTree repository can contain a high level "summary" file that
+ line="5943">An OSTree repository can contain a high level "summary" file that
describes the available branches and other metadata.
If the timetable for making commits and updating the summary file is fairly
lexicographic order.
Locking: exclusive</doc>
- <source-position filename="ostree-repo.h" line="1496"/>
+ <source-position filename="ostree-repo.h" line="1565"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5755">Repo</doc>
+ line="5945">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="additional_metadata"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5756">A GVariant of type a{sv}, or %NULL</doc>
+ line="5946">A GVariant of type a{sv}, or %NULL</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5757">Cancellable</doc>
+ line="5947">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3187">By default, an #OstreeRepo will cache the remote configuration and its
+ line="3353">By default, an #OstreeRepo will cache the remote configuration and its
own repo/config data. This API can be used to reload it.</doc>
<source-position filename="ostree-repo.h" line="148"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3189">repo</doc>
+ line="3355">repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3190">cancellable</doc>
+ line="3356">cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1651">Create a new remote named @name pointing to @url. If @options is
+ line="1677">Create a new remote named @name pointing to @url. If @options is
provided, then it will be mapped to #GKeyFile entries, where the
GVariant dictionary key is an option string, and the value is
mapped as follows:
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1653">Repo</doc>
+ line="1679">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1654">Name of remote</doc>
+ line="1680">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
- <parameter name="url" transfer-ownership="none">
+ <parameter name="url"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1655">URL for remote (if URL begins with metalink=, it will be used as such)</doc>
+ line="1681">URL for remote (if URL begins with metalink=, it will be used as such)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1656">GVariant of type a{sv}</doc>
+ line="1682">GVariant of type a{sv}</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1657">Cancellable</doc>
+ line="1683">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1839">A combined function handling the equivalent of
+ line="1867">A combined function handling the equivalent of
ostree_repo_remote_add(), ostree_repo_remote_delete(), with more
options.</doc>
<source-position filename="ostree-repo.h" line="184"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1841">Repo</doc>
+ line="1869">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="sysroot"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1842">System root</doc>
+ line="1870">System root</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="changeop" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1843">Operation to perform</doc>
+ line="1871">Operation to perform</doc>
<type name="RepoRemoteChange" c:type="OstreeRepoRemoteChange"/>
</parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1844">Name of remote</doc>
+ line="1872">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
- <parameter name="url" transfer-ownership="none">
+ <parameter name="url"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1845">URL for remote (if URL begins with metalink=, it will be used as such)</doc>
+ line="1873">URL for remote (if URL begins with metalink=, it will be used as such)</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1846">GVariant of type a{sv}</doc>
+ line="1874">GVariant of type a{sv}</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1847">Cancellable</doc>
+ line="1875">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1737">Delete the remote named @name. It is an error if the provided
+ line="1763">Delete the remote named @name. It is an error if the provided
remote does not exist.</doc>
<source-position filename="ostree-repo.h" line="161"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1739">Repo</doc>
+ line="1765">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1740">Name of remote</doc>
+ line="1766">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1741">Cancellable</doc>
+ line="1767">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2332">Tries to fetch the summary file and any GPG signatures on the summary file
+ line="2498">Tries to fetch the summary file and any GPG signatures on the summary file
over HTTP, and returns the binary data in @out_summary and @out_signatures
respectively.
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2357">%TRUE on success, %FALSE on failure</doc>
+ line="2523">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2334">Self</doc>
+ line="2500">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2335">name of a remote</doc>
+ line="2501">name of a remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_summary"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2336">return location for raw summary data, or
+ line="2502">return location for raw summary data, or
%NULL</doc>
<type name="GLib.Bytes" c:type="GBytes**"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2338">return location for raw summary
+ line="2504">return location for raw summary
signature data, or %NULL</doc>
<type name="GLib.Bytes" c:type="GBytes**"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2340">a #GCancellable</doc>
+ line="2506">a #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6533">Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags.
+ line="6551">Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags.
The following are currently defined:
- override-url (s): Fetch summary from this URL if remote specifies no metalink in options
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6555">%TRUE on success, %FALSE on failure</doc>
+ line="6573">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6535">Self</doc>
+ line="6553">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6536">name of a remote</doc>
+ line="6554">name of a remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="options"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6537">A GVariant a{sv} with an extensible set of flags</doc>
+ line="6555">A GVariant a{sv} with an extensible set of flags</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="out_summary"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6538">return location for raw summary data, or
+ line="6556">return location for raw summary data, or
%NULL</doc>
<type name="GLib.Bytes" c:type="GBytes**"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6540">return location for raw summary
+ line="6558">return location for raw summary
signature data, or %NULL</doc>
<type name="GLib.Bytes" c:type="GBytes**"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
- line="6542">a #GCancellable</doc>
+ line="6560">a #GCancellable</doc>
+ <type name="Gio.Cancellable" c:type="GCancellable*"/>
+ </parameter>
+ </parameters>
+ </method>
+ <method name="remote_get_gpg_keys"
+ c:identifier="ostree_repo_remote_get_gpg_keys"
+ version="2021.4"
+ throws="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2370">Enumerate the trusted GPG keys for the remote @name. If @name is
+%NULL, the global GPG keys will be returned. The keys will be
+returned in the @out_keys #GPtrArray. Each element in the array is a
+#GVariant of format %OSTREE_GPG_KEY_GVARIANT_FORMAT. The @key_ids
+array can be used to limit which keys are included. If @key_ids is
+%NULL, then all keys are included.</doc>
+ <source-position filename="ostree-repo.h" line="1467"/>
+ <return-value transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2389">%TRUE if the GPG keys could be enumerated, %FALSE otherwise</doc>
+ <type name="gboolean" c:type="gboolean"/>
+ </return-value>
+ <parameters>
+ <instance-parameter name="self" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2372">an #OstreeRepo</doc>
+ <type name="Repo" c:type="OstreeRepo*"/>
+ </instance-parameter>
+ <parameter name="name"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2373">name of the remote or %NULL</doc>
+ <type name="utf8" c:type="const char*"/>
+ </parameter>
+ <parameter name="key_ids"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2374">
+ a %NULL-terminated array of GPG key IDs to include, or %NULL</doc>
+ <array c:type="const char* const*">
+ <type name="utf8"/>
+ </array>
+ </parameter>
+ <parameter name="out_keys"
+ direction="out"
+ caller-allocates="0"
+ transfer-ownership="container"
+ optional="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2376">
+ return location for a #GPtrArray of the remote's trusted GPG keys, or
+ %NULL</doc>
+ <array name="GLib.PtrArray" c:type="GPtrArray**">
+ <type name="GLib.Variant"/>
+ </array>
+ </parameter>
+ <parameter name="cancellable"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo.c"
+ line="2379">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2000">Return whether GPG verification is enabled for the remote named @name
+ line="2028">Return whether GPG verification is enabled for the remote named @name
through @out_gpg_verify. It is an error if the provided remote does
not exist.</doc>
- <source-position filename="ostree-repo.h" line="1418"/>
+ <source-position filename="ostree-repo.h" line="1422"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2011">%TRUE on success, %FALSE on failure</doc>
+ line="2039">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2002">Repo</doc>
+ line="2030">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2003">Name of remote</doc>
+ line="2031">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_gpg_verify"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2004">Remote's GPG option</doc>
+ line="2032">Remote's GPG option</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2034">Return whether GPG verification of the summary is enabled for the remote
+ line="2062">Return whether GPG verification of the summary is enabled for the remote
named @name through @out_gpg_verify_summary. It is an error if the provided
remote does not exist.</doc>
- <source-position filename="ostree-repo.h" line="1424"/>
+ <source-position filename="ostree-repo.h" line="1428"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2045">%TRUE on success, %FALSE on failure</doc>
+ line="2073">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2036">Repo</doc>
+ line="2064">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2037">Name of remote</doc>
+ line="2065">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_gpg_verify_summary"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2038">Remote's GPG option</doc>
+ line="2066">Remote's GPG option</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1957">Return the URL of the remote named @name through @out_url. It is an
+ line="1985">Return the URL of the remote named @name through @out_url. It is an
error if the provided remote does not exist.</doc>
<source-position filename="ostree-repo.h" line="198"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1967">%TRUE on success, %FALSE on failure</doc>
+ line="1995">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1959">Repo</doc>
+ line="1987">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1960">Name of remote</doc>
+ line="1988">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_url"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1961">Remote's URL</doc>
+ line="1989">Remote's URL</doc>
<type name="utf8" c:type="char**"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2057">Imports one or more GPG keys from the open @source_stream, or from the
+ line="2085">Imports one or more GPG keys from the open @source_stream, or from the
user's personal keyring if @source_stream is %NULL. The @key_ids array
can optionally restrict which keys are imported. If @key_ids is %NULL,
then all keys are imported.
The imported keys will be used to conduct GPG verification when pulling
from the remote named @name.</doc>
- <source-position filename="ostree-repo.h" line="1429"/>
+ <source-position filename="ostree-repo.h" line="1475"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2076">%TRUE on success, %FALSE on failure</doc>
+ line="2104">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2059">Self</doc>
+ line="2087">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2060">name of a remote</doc>
+ line="2088">name of a remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="source_stream"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2061">a #GInputStream, or %NULL</doc>
+ line="2089">a #GInputStream, or %NULL</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="key_ids"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2062">a %NULL-terminated array of GPG key IDs, or %NULL</doc>
+ line="2090">a %NULL-terminated array of GPG key IDs, or %NULL</doc>
<array c:type="const char* const*">
<type name="utf8"/>
</array>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2063">return location for the number of imported
+ line="2091">return location for the number of imported
keys, or %NULL</doc>
<type name="guint" c:type="guint*"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="2065">a #GCancellable</doc>
+ line="2093">a #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<method name="remote_list" c:identifier="ostree_repo_remote_list">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1906">List available remote names in an #OstreeRepo. Remote names are sorted
+ line="1934">List available remote names in an #OstreeRepo. Remote names are sorted
alphabetically. If no remotes are available the function returns %NULL.</doc>
<source-position filename="ostree-repo.h" line="194"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1914">a %NULL-terminated
+ line="1942">a %NULL-terminated
array of remote names</doc>
<array length="0" zero-terminated="0" c:type="char**">
<type name="utf8"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1908">Repo</doc>
+ line="1936">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="out_n_remotes"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1909">Number of remotes available</doc>
+ line="1937">Number of remotes available</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
keyrings should match.
If no match can be found, a %G_IO_ERROR_NOT_FOUND error will be returned.</doc>
- <source-position filename="ostree-repo.h" line="1374"/>
+ <source-position filename="ostree-repo.h" line="1378"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-pull.c"
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3348">Set a custom location for the cache directory used for e.g.
+ line="3514">Set a custom location for the cache directory used for e.g.
per-remote summary caches. Setting this manually is useful when
doing operations on a system repo as a user because you don't have
write permissions in the repo, where the cache is normally stored.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3350">An #OstreeRepo</doc>
+ line="3516">An #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3351">directory fd</doc>
+ line="3517">directory fd</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3352">subpath in @dfd</doc>
+ line="3518">subpath in @dfd</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3353">a #GCancellable</doc>
+ line="3519">a #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6243">Set or clear the collection ID of this repository. See [collection IDs][collection-ids].
+ line="6433">Set or clear the collection ID of this repository. See [collection IDs][collection-ids].
The update will be made in memory, but must be written out to the repository
configuration on disk using ostree_repo_write_config().</doc>
<source-position filename="ostree-repo.h" line="112"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6253">%TRUE on success, %FALSE otherwise</doc>
+ line="6443">%TRUE on success, %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6245">an #OstreeRepo</doc>
+ line="6435">an #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="collection_id"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="6246">new collection ID, or %NULL to unset it</doc>
+ line="6436">new collection ID, or %NULL to unset it</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
c:identifier="ostree_repo_set_disable_fsync">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3331">Disable requests to fsync() to stable storage during commits. This
+ line="3497">Disable requests to fsync() to stable storage during commits. This
option should only be used by build system tools which are creating
disposable virtual machines, or have higher level mechanisms for
ensuring data consistency.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3333">An #OstreeRepo</doc>
+ line="3499">An #OstreeRepo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="disable_fsync" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="3334">If %TRUE, do not fsync</doc>
+ line="3500">If %TRUE, do not fsync</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5023">Add a GPG signature to a commit.</doc>
- <source-position filename="ostree-repo.h" line="1392"/>
+ line="5189">Add a GPG signature to a commit.</doc>
+ <source-position filename="ostree-repo.h" line="1396"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5025">Self</doc>
+ line="5191">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="commit_checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5026">SHA256 of given commit to sign</doc>
+ line="5192">SHA256 of given commit to sign</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="key_id" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5027">Use this GPG key id</doc>
+ line="5193">Use this GPG key id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="homedir"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5028">GPG home directory, or %NULL</doc>
+ line="5194">GPG home directory, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5029">A #GCancellable</doc>
+ line="5195">A #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5112">This function is deprecated, sign the summary file instead.
+ line="5278">This function is deprecated, sign the summary file instead.
Add a GPG signature to a static delta.</doc>
- <source-position filename="ostree-repo.h" line="1400"/>
+ <source-position filename="ostree-repo.h" line="1404"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5114">Self</doc>
+ line="5280">Self</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="from_commit" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5115">From commit</doc>
+ line="5281">From commit</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="to_commit" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5116">To commit</doc>
+ line="5282">To commit</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="key_id" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5117">key id</doc>
+ line="5283">key id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="homedir" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5118">homedir</doc>
+ line="5284">homedir</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5119">cancellable</doc>
+ line="5285">cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
+ <method name="signature_verify_commit_data"
+ c:identifier="ostree_repo_signature_verify_commit_data"
+ throws="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="359">Validate the commit data using the commit metadata which must
+contain at least one valid signature. If GPG and signapi are
+both enabled, then both must find at least one valid signature.</doc>
+ <source-position filename="ostree-repo.h" line="1556"/>
+ <return-value transfer-ownership="none">
+ <type name="gboolean" c:type="gboolean"/>
+ </return-value>
+ <parameters>
+ <instance-parameter name="self" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="361">Repo</doc>
+ <type name="Repo" c:type="OstreeRepo*"/>
+ </instance-parameter>
+ <parameter name="remote_name" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="362">Name of remote</doc>
+ <type name="utf8" c:type="const char*"/>
+ </parameter>
+ <parameter name="commit_data" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="363">Commit object data (GVariant)</doc>
+ <type name="GLib.Bytes" c:type="GBytes*"/>
+ </parameter>
+ <parameter name="commit_metadata" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="364">Commit metadata (GVariant `a{sv}`), must contain at least one valid signature</doc>
+ <type name="GLib.Bytes" c:type="GBytes*"/>
+ </parameter>
+ <parameter name="flags" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="365">Optionally disable GPG or signapi</doc>
+ <type name="RepoVerifyFlags" c:type="OstreeRepoVerifyFlags"/>
+ </parameter>
+ <parameter name="out_results"
+ direction="out"
+ caller-allocates="0"
+ transfer-ownership="full"
+ nullable="1">
+ <doc xml:space="preserve"
+ filename="ostree-repo-pull-verify.c"
+ line="366">Textual description of results</doc>
+ <type name="utf8" c:type="char**"/>
+ </parameter>
+ </parameters>
+ </method>
<method name="static_delta_execute_offline"
c:identifier="ostree_repo_static_delta_execute_offline"
throws="1">
on disk, apply it, generating a new commit. The directory must be
named with the form "FROM-TO", where both are checksums, and it
must contain a file named "superblock", along with at least one part.</doc>
- <source-position filename="ostree-repo.h" line="1135"/>
+ <source-position filename="ostree-repo.h" line="1139"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
The directory must be named with the form "FROM-TO", where both are
checksums, and it must contain a file named "superblock", along with at least
one part.</doc>
- <source-position filename="ostree-repo.h" line="1127"/>
+ <source-position filename="ostree-repo.h" line="1131"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
- filename: ay: Save delta superblock to this filename, and parts in the same directory. Default saves to repository.
- sign-name: ay: Signature type to use.
- sign-key-ids: as: Array of keys used to sign delta superblock.</doc>
- <source-position filename="ostree-repo.h" line="1100"/>
+ <source-position filename="ostree-repo.h" line="1104"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
This is normally called automatically when the summary is updated in ostree_repo_regenerate_summary().
Locking: shared</doc>
- <source-position filename="ostree-repo.h" line="1120"/>
+ <source-position filename="ostree-repo.h" line="1124"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<doc xml:space="preserve"
filename="ostree-repo-static-delta-core.c"
line="1161">Verify static delta file signature.</doc>
- <source-position filename="ostree-repo.h" line="1142"/>
+ <source-position filename="ostree-repo.h" line="1146"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-static-delta-core.c"
filename="ostree-repo-traverse.c"
line="665">Create a new set @out_reachable containing all objects reachable
from @commit_checksum, traversing @maxdepth parent commits.</doc>
- <source-position filename="ostree-repo.h" line="1158"/>
+ <source-position filename="ostree-repo.h" line="1162"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
filename="ostree-repo-traverse.c"
line="639">Update the set @inout_reachable containing all objects reachable
from @commit_checksum, traversing @maxdepth parent commits.</doc>
- <source-position filename="ostree-repo.h" line="1166"/>
+ <source-position filename="ostree-repo.h" line="1170"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
Additionally this constructs a mapping from each object to the parents
of the object, which can be used to track which commits an object
belongs to.</doc>
- <source-position filename="ostree-repo.h" line="1173"/>
+ <source-position filename="ostree-repo.h" line="1177"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
line="307">Add all commit objects directly reachable via a ref to @reachable.
Locking: shared</doc>
- <source-position filename="ostree-repo.h" line="1285"/>
+ <source-position filename="ostree-repo.h" line="1289"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5501">Check for a valid GPG signature on commit named by the ASCII
+ line="5691">Check for a valid GPG signature on commit named by the ASCII
checksum @commit_checksum.</doc>
- <source-position filename="ostree-repo.h" line="1410"/>
+ <source-position filename="ostree-repo.h" line="1414"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5513">%TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE</doc>
+ line="5703">%TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5503">Repository</doc>
+ line="5693">Repository</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="commit_checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5504">ASCII SHA256 checksum</doc>
+ line="5694">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="keyringdir"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5505">Path to directory GPG keyrings; overrides built-in default if given</doc>
+ line="5695">Path to directory GPG keyrings; overrides built-in default if given</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="extra_keyring"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5506">Path to additional keyring file (not a directory)</doc>
+ line="5696">Path to additional keyring file (not a directory)</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5507">Cancellable</doc>
+ line="5697">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5539">Read GPG signature(s) on the commit named by the ASCII checksum
+ line="5729">Read GPG signature(s) on the commit named by the ASCII checksum
@commit_checksum and return detailed results.</doc>
- <source-position filename="ostree-repo.h" line="1462"/>
+ <source-position filename="ostree-repo.h" line="1508"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5551">an #OstreeGpgVerifyResult, or %NULL on error</doc>
+ line="5741">an #OstreeGpgVerifyResult, or %NULL on error</doc>
<type name="GpgVerifyResult" c:type="OstreeGpgVerifyResult*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5541">Repository</doc>
+ line="5731">Repository</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="commit_checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5542">ASCII SHA256 checksum</doc>
+ line="5732">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="keyringdir"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5543">Path to directory GPG keyrings; overrides built-in default if given</doc>
+ line="5733">Path to directory GPG keyrings; overrides built-in default if given</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="extra_keyring"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5544">Path to additional keyring file (not a directory)</doc>
+ line="5734">Path to additional keyring file (not a directory)</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5545">Cancellable</doc>
+ line="5735">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5575">Read GPG signature(s) on the commit named by the ASCII checksum
+ line="5765">Read GPG signature(s) on the commit named by the ASCII checksum
@commit_checksum and return detailed results, based on the keyring
configured for @remote.</doc>
- <source-position filename="ostree-repo.h" line="1471"/>
+ <source-position filename="ostree-repo.h" line="1517"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5587">an #OstreeGpgVerifyResult, or %NULL on error</doc>
+ line="5777">an #OstreeGpgVerifyResult, or %NULL on error</doc>
<type name="GpgVerifyResult" c:type="OstreeGpgVerifyResult*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5577">Repository</doc>
+ line="5767">Repository</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="commit_checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5578">ASCII SHA256 checksum</doc>
+ line="5768">ASCII SHA256 checksum</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5579">OSTree remote to use for configuration</doc>
+ line="5769">OSTree remote to use for configuration</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5580">Cancellable</doc>
+ line="5770">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5662">Verify @signatures for @summary data using GPG keys in the keyring for
+ line="5852">Verify @signatures for @summary data using GPG keys in the keyring for
@remote_name, and return an #OstreeGpgVerifyResult.</doc>
- <source-position filename="ostree-repo.h" line="1488"/>
+ <source-position filename="ostree-repo.h" line="1534"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5674">an #OstreeGpgVerifyResult, or %NULL on error</doc>
+ line="5864">an #OstreeGpgVerifyResult, or %NULL on error</doc>
<type name="GpgVerifyResult" c:type="OstreeGpgVerifyResult*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5664">Repo</doc>
+ line="5854">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="remote_name" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5665">Name of remote</doc>
+ line="5855">Name of remote</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="summary" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5666">Summary data as a #GBytes</doc>
+ line="5856">Summary data as a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="signatures" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5667">Summary signatures as a #GBytes</doc>
+ line="5857">Summary signatures as a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="5668">Cancellable</doc>
+ line="5858">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
filename="ostree-repo-libarchive.c"
line="968">Import an archive file @archive into the repository, and write its
file structure to @mtree.</doc>
- <source-position filename="ostree-repo.h" line="762"/>
+ <source-position filename="ostree-repo.h" line="766"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
filename="ostree-repo-libarchive.c"
line="1003">Read an archive from @fd and import it into the repository, writing
its file structure to @mtree.</doc>
- <source-position filename="ostree-repo.h" line="772"/>
+ <source-position filename="ostree-repo.h" line="776"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
line="3009">Write a commit metadata object, referencing @root_contents_checksum
-and @root_metadata_checksum.</doc>
- <source-position filename="ostree-repo.h" line="871"/>
+and @root_metadata_checksum.
+This uses the current time as the commit timestamp, but it can be
+overridden with an explicit timestamp via the
+[standard](https://reproducible-builds.org/specs/source-date-epoch/)
+`SOURCE_DATE_EPOCH` environment flag.</doc>
+ <source-position filename="ostree-repo.h" line="875"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3143">Replace any existing metadata associated with commit referred to by
+ line="3166">Replace any existing metadata associated with commit referred to by
@checksum with @metadata. If @metadata is %NULL, then existing
data will be deleted.</doc>
- <source-position filename="ostree-repo.h" line="901"/>
+ <source-position filename="ostree-repo.h" line="905"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3145">Repo</doc>
+ line="3168">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3146">ASCII SHA256 commit checksum</doc>
+ line="3169">ASCII SHA256 commit checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="metadata"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3147">Metadata to associate with commit in with format "a{sv}", or %NULL to delete</doc>
+ line="3170">Metadata to associate with commit in with format "a{sv}", or %NULL to delete</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3148">Cancellable</doc>
+ line="3171">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3041">Write a commit metadata object, referencing @root_contents_checksum
+ line="3062">Write a commit metadata object, referencing @root_contents_checksum
and @root_metadata_checksum.</doc>
- <source-position filename="ostree-repo.h" line="882"/>
+ <source-position filename="ostree-repo.h" line="886"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3043">Repo</doc>
+ line="3064">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="parent"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3044">ASCII SHA256 checksum for parent, or %NULL for none</doc>
+ line="3065">ASCII SHA256 checksum for parent, or %NULL for none</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="subject"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3045">Subject</doc>
+ line="3066">Subject</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="body"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3046">Body</doc>
+ line="3067">Body</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="metadata"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3047">GVariant of type a{sv}, or %NULL for none</doc>
+ line="3068">GVariant of type a{sv}, or %NULL for none</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="root" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3048">The tree to point the commit to</doc>
+ line="3069">The tree to point the commit to</doc>
<type name="RepoFile" c:type="OstreeRepoFile*"/>
</parameter>
<parameter name="time" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3049">The time to use to stamp the commit</doc>
+ line="3070">The time to use to stamp the commit</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="out_commit"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3050">Resulting ASCII SHA256 checksum for commit</doc>
+ line="3071">Resulting ASCII SHA256 checksum for commit</doc>
<type name="utf8" c:type="char**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="3051">Cancellable</doc>
+ line="3072">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1463">Save @new_config in place of this repository's config file.</doc>
+ line="1487">Save @new_config in place of this repository's config file.</doc>
<source-position filename="ostree-repo.h" line="248"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1465">Repo</doc>
+ line="1489">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="new_config" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1466">Overwrite the config file with this data</doc>
+ line="1490">Overwrite the config file with this data</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4098">Store as objects all contents of the directory referred to by @dfd
+ line="4135">Store as objects all contents of the directory referred to by @dfd
and @path all children into the repository @self, overlaying the
resulting filesystem hierarchy into @mtree.</doc>
- <source-position filename="ostree-repo.h" line="752"/>
+ <source-position filename="ostree-repo.h" line="756"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4100">Repo</doc>
+ line="4137">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="dfd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4101">Directory file descriptor</doc>
+ line="4138">Directory file descriptor</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4102">Path</doc>
+ line="4139">Path</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="mtree" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4103">Overlay directory contents into this tree</doc>
+ line="4140">Overlay directory contents into this tree</doc>
<type name="MutableTree" c:type="OstreeMutableTree*"/>
</parameter>
<parameter name="modifier"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4104">Optional modifier</doc>
+ line="4141">Optional modifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4105">Cancellable</doc>
+ line="4142">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4057">Store objects for @dir and all children into the repository @self,
+ line="4094">Store objects for @dir and all children into the repository @self,
overlaying the resulting filesystem hierarchy into @mtree.</doc>
- <source-position filename="ostree-repo.h" line="744"/>
+ <source-position filename="ostree-repo.h" line="748"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4059">Repo</doc>
+ line="4096">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="dir" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4060">Path to a directory</doc>
+ line="4097">Path to a directory</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="mtree" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4061">Overlay directory contents into this tree</doc>
+ line="4098">Overlay directory contents into this tree</doc>
<type name="MutableTree" c:type="OstreeMutableTree*"/>
</parameter>
<parameter name="modifier"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4062">Optional modifier</doc>
+ line="4099">Optional modifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4063">Cancellable</doc>
+ line="4100">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4148">Write all metadata objects for @mtree to repo; the resulting
+ line="4185">Write all metadata objects for @mtree to repo; the resulting
@out_file points to the %OSTREE_OBJECT_TYPE_DIR_TREE object that
the @mtree represented.</doc>
- <source-position filename="ostree-repo.h" line="864"/>
+ <source-position filename="ostree-repo.h" line="868"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4150">Repo</doc>
+ line="4187">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</instance-parameter>
<parameter name="mtree" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4151">Mutable tree</doc>
+ line="4188">Mutable tree</doc>
<type name="MutableTree" c:type="OstreeMutableTree*"/>
</parameter>
<parameter name="out_file"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4152">An #OstreeRepoFile representing @mtree's root.</doc>
+ line="4189">An #OstreeRepoFile representing @mtree's root.</doc>
<type name="Gio.File" c:type="GFile**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4153">Cancellable</doc>
+ line="4190">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1125">Path to repository. Note that if this repository was created
+ line="1147">Path to repository. Note that if this repository was created
via `ostree_repo_new_at()`, this value will refer to a value in
the Linux kernel's `/proc/self/fd` directory. Generally, you
should avoid using this property at all; you can gain a reference
transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1158">Path to directory containing remote definitions. The default is `NULL`.
+ line="1180">Path to directory containing remote definitions. The default is `NULL`.
If a `sysroot-path` property is defined, this value will default to
`${sysroot_path}/etc/ostree/remotes.d`.
transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1140">A system using libostree for the host has a "system" repository; this
+ line="1162">A system using libostree for the host has a "system" repository; this
property will be set for repositories referenced via
`ostree_sysroot_repo()` for example.
<glib:signal name="gpg-verify-result" when="last">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1176">Emitted during a pull operation upon GPG verification (if enabled).
+ line="1198">Emitted during a pull operation upon GPG verification (if enabled).
Applications can connect to this signal to output the verification
results if desired.
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1179">checksum of the signed object</doc>
+ line="1201">checksum of the signed object</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.c"
- line="1180">an #OstreeGpgVerifyResult</doc>
+ line="1202">an #OstreeGpgVerifyResult</doc>
<type name="GpgVerifyResult"/>
</parameter>
</parameters>
<record name="RepoCheckoutAtOptions" c:type="OstreeRepoCheckoutAtOptions">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="970">An extensible options structure controlling checkout. Ensure that
+ line="974">An extensible options structure controlling checkout. Ensure that
you have entirely zeroed the structure, then set just the desired
options. This is used by ostree_repo_checkout_at() which
supercedes previous separate enumeration usage in
ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at().</doc>
- <source-position filename="ostree-repo.h" line="1003"/>
+ <source-position filename="ostree-repo.h" line="1007"/>
<field name="mode" writable="1">
<type name="RepoCheckoutMode" c:type="OstreeRepoCheckoutMode"/>
</field>
version="2017.13">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1404">This function simply assigns @cache to the `devino_to_csum_cache` member of
+ line="1412">This function simply assigns @cache to the `devino_to_csum_cache` member of
@opts; it's only useful for introspection.
Note that cache does *not* have its refcount incremented - the lifetime of
@cache must be equal to or greater than that of @opts.</doc>
- <source-position filename="ostree-repo.h" line="1015"/>
+ <source-position filename="ostree-repo.h" line="1019"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="opts" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1406">Checkout options</doc>
+ line="1414">Checkout options</doc>
<type name="RepoCheckoutAtOptions"
c:type="OstreeRepoCheckoutAtOptions*"/>
</instance-parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1407">Devino cache</doc>
+ line="1415">Devino cache</doc>
<type name="RepoDevInoCache" c:type="OstreeRepoDevInoCache*"/>
</parameter>
</parameters>
<callback name="RepoCheckoutFilter"
c:type="OstreeRepoCheckoutFilter"
version="2018.2">
- <source-position filename="ostree-repo.h" line="965"/>
+ <source-position filename="ostree-repo.h" line="969"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="961">#OstreeRepoCheckoutFilterResult saying whether or not to checkout this file</doc>
+ line="965">#OstreeRepoCheckoutFilterResult saying whether or not to checkout this file</doc>
<type name="RepoCheckoutFilterResult"
c:type="OstreeRepoCheckoutFilterResult"/>
</return-value>
<parameter name="repo" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="956">Repo</doc>
+ line="960">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="957">Path to file</doc>
+ line="961">Path to file</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="stbuf"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="958">File information</doc>
+ line="962">File information</doc>
<type name="gpointer" c:type="stat*"/>
</parameter>
<parameter name="user_data"
closure="3">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="959">User data</doc>
+ line="963">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
<enumeration name="RepoCheckoutFilterResult"
version="2018.2"
c:type="OstreeRepoCheckoutFilterResult">
- <source-position filename="ostree-repo.h" line="952"/>
+ <source-position filename="ostree-repo.h" line="956"/>
<member name="allow"
value="0"
c:identifier="OSTREE_REPO_CHECKOUT_FILTER_ALLOW">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="944">Do checkout this object</doc>
+ line="948">Do checkout this object</doc>
</member>
<member name="skip"
value="1"
c:identifier="OSTREE_REPO_CHECKOUT_FILTER_SKIP">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="945">Ignore this object</doc>
+ line="949">Ignore this object</doc>
</member>
</enumeration>
<enumeration name="RepoCheckoutMode" c:type="OstreeRepoCheckoutMode">
- <source-position filename="ostree-repo.h" line="915"/>
+ <source-position filename="ostree-repo.h" line="919"/>
<member name="none"
value="0"
c:identifier="OSTREE_REPO_CHECKOUT_MODE_NONE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="909">No special options</doc>
+ line="913">No special options</doc>
</member>
<member name="user"
value="1"
c:identifier="OSTREE_REPO_CHECKOUT_MODE_USER">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="910">Ignore uid/gid of files</doc>
+ line="914">Ignore uid/gid of files</doc>
</member>
</enumeration>
<record name="RepoCheckoutOptions"
</record>
<enumeration name="RepoCheckoutOverwriteMode"
c:type="OstreeRepoCheckoutOverwriteMode">
- <source-position filename="ostree-repo.h" line="929"/>
+ <source-position filename="ostree-repo.h" line="933"/>
<member name="none"
value="0"
c:identifier="OSTREE_REPO_CHECKOUT_OVERWRITE_NONE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="919">No special options</doc>
+ line="923">No special options</doc>
</member>
<member name="union_files"
value="1"
c:identifier="OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="920">When layering checkouts, unlink() and replace existing files, but do not modify existing directories (unless whiteouts are enabled, then directories are replaced)</doc>
+ line="924">When layering checkouts, unlink() and replace existing files, but do not modify existing directories (unless whiteouts are enabled, then directories are replaced)</doc>
</member>
<member name="add_files"
value="2"
c:identifier="OSTREE_REPO_CHECKOUT_OVERWRITE_ADD_FILES">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="921">Only add new files/directories</doc>
+ line="925">Only add new files/directories</doc>
</member>
<member name="union_identical"
value="3"
c:identifier="OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_IDENTICAL">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="922">Like UNION_FILES, but error if files are not identical (requires hardlink checkouts)</doc>
+ line="926">Like UNION_FILES, but error if files are not identical (requires hardlink checkouts)</doc>
</member>
</enumeration>
<callback name="RepoCommitFilter" c:type="OstreeRepoCommitFilter">
</enumeration>
<enumeration name="RepoCommitIterResult"
c:type="OstreeRepoCommitIterResult">
- <source-position filename="ostree-repo.h" line="1215"/>
+ <source-position filename="ostree-repo.h" line="1219"/>
<member name="error"
value="0"
c:identifier="OSTREE_REPO_COMMIT_ITER_RESULT_ERROR">
c:symbol-prefix="repo_commit_modifier">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="696">A structure allowing control over commits.</doc>
- <source-position filename="ostree-repo.h" line="701"/>
+ line="700">A structure allowing control over commits.</doc>
+ <source-position filename="ostree-repo.h" line="705"/>
<constructor name="new" c:identifier="ostree_repo_commit_modifier_new">
- <source-position filename="ostree-repo.h" line="704"/>
+ <source-position filename="ostree-repo.h" line="708"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4236">A new commit modifier.</doc>
+ line="4273">A new commit modifier.</doc>
<type name="RepoCommitModifier" c:type="OstreeRepoCommitModifier*"/>
</return-value>
<parameters>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4231">Control options for filter</doc>
+ line="4268">Control options for filter</doc>
<type name="RepoCommitModifierFlags"
c:type="OstreeRepoCommitModifierFlags"/>
</parameter>
destroy="3">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4232">Function that can inspect individual files</doc>
+ line="4269">Function that can inspect individual files</doc>
<type name="RepoCommitFilter" c:type="OstreeRepoCommitFilter"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4233">User data</doc>
+ line="4270">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="destroy_notify"
scope="async">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4234">A #GDestroyNotify</doc>
+ line="4271">A #GDestroyNotify</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</constructor>
<method name="ref" c:identifier="ostree_repo_commit_modifier_ref">
- <source-position filename="ostree-repo.h" line="739"/>
+ <source-position filename="ostree-repo.h" line="743"/>
<return-value transfer-ownership="full">
<type name="RepoCommitModifier" c:type="OstreeRepoCommitModifier*"/>
</return-value>
version="2017.13">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4387">See the documentation for
+ line="4424">See the documentation for
`ostree_repo_devino_cache_new()`. This function can
then be used for later calls to
`ostree_repo_write_directory_to_mtree()` to optimize commits.
This function will add a reference to @cache without copying - you
should avoid further mutation of the cache.</doc>
- <source-position filename="ostree-repo.h" line="735"/>
+ <source-position filename="ostree-repo.h" line="739"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="modifier" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4389">Modifier</doc>
+ line="4426">Modifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</instance-parameter>
<parameter name="cache" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4390">A hash table caching device,inode to checksums</doc>
+ line="4427">A hash table caching device,inode to checksums</doc>
<type name="RepoDevInoCache" c:type="OstreeRepoDevInoCache*"/>
</parameter>
</parameters>
c:identifier="ostree_repo_commit_modifier_set_sepolicy">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4309">If @policy is non-%NULL, use it to look up labels to use for
+ line="4346">If @policy is non-%NULL, use it to look up labels to use for
"security.selinux" extended attributes.
Note that any policy specified this way operates in addition to any
ostree_repo_commit_modifier_set_xattr_callback(). However if both
specify a value for "security.selinux", then the one from the
policy wins.</doc>
- <source-position filename="ostree-repo.h" line="724"/>
+ <source-position filename="ostree-repo.h" line="728"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="modifier" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4311">An #OstreeRepoCommitModifier</doc>
+ line="4348">An #OstreeRepoCommitModifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</instance-parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4312">Policy to use for labeling</doc>
+ line="4349">Policy to use for labeling</doc>
<type name="SePolicy" c:type="OstreeSePolicy*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4331">In many cases, one wants to create a "derived" commit from base commit.
+ line="4368">In many cases, one wants to create a "derived" commit from base commit.
SELinux policy labels are part of that base commit. This API allows
one to easily set up SELinux labeling from a base commit.</doc>
- <source-position filename="ostree-repo.h" line="728"/>
+ <source-position filename="ostree-repo.h" line="732"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<instance-parameter name="modifier" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4333">Commit modifier</doc>
+ line="4370">Commit modifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</instance-parameter>
<parameter name="repo" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4334">OSTree repo containing @rev</doc>
+ line="4371">OSTree repo containing @rev</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
<parameter name="rev" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4335">Find SELinux policy from this base commit</doc>
+ line="4372">Find SELinux policy from this base commit</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
c:identifier="ostree_repo_commit_modifier_set_xattr_callback">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4286">If set, this function should return extended attributes to use for
+ line="4323">If set, this function should return extended attributes to use for
the given path. This is useful for things like ACLs and SELinux,
where a build system can label the files as it's committing to the
repository.</doc>
- <source-position filename="ostree-repo.h" line="718"/>
+ <source-position filename="ostree-repo.h" line="722"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<instance-parameter name="modifier" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4288">An #OstreeRepoCommitModifier</doc>
+ line="4325">An #OstreeRepoCommitModifier</doc>
<type name="RepoCommitModifier"
c:type="OstreeRepoCommitModifier*"/>
</instance-parameter>
destroy="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4289">Function to be invoked, should return extended attributes for path</doc>
+ line="4326">Function to be invoked, should return extended attributes for path</doc>
<type name="RepoCommitModifierXattrCallback"
c:type="OstreeRepoCommitModifierXattrCallback"/>
</parameter>
<parameter name="destroy" transfer-ownership="none" scope="async">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4290">Destroy notification</doc>
+ line="4327">Destroy notification</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
- line="4291">Data for @callback:</doc>
+ line="4328">Data for @callback:</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="unref" c:identifier="ostree_repo_commit_modifier_unref">
- <source-position filename="ostree-repo.h" line="741"/>
+ <source-position filename="ostree-repo.h" line="745"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</record>
<bitfield name="RepoCommitModifierFlags"
c:type="OstreeRepoCommitModifierFlags">
- <source-position filename="ostree-repo.h" line="694"/>
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="676">Flags modifying commit behavior. In bare-user-only mode, @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS
+and @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS are automatically enabled.</doc>
+ <source-position filename="ostree-repo.h" line="698"/>
<member name="none"
value="0"
c:identifier="OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE">
c:identifier="OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="681">Canonicalize permissions for bare-user-only mode.</doc>
+ line="681">Canonicalize permissions.</doc>
</member>
<member name="error_on_unlabeled"
value="8"
</bitfield>
<callback name="RepoCommitModifierXattrCallback"
c:type="OstreeRepoCommitModifierXattrCallback">
- <source-position filename="ostree-repo.h" line="712"/>
+ <source-position filename="ostree-repo.h" line="716"/>
<return-value transfer-ownership="full">
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
</bitfield>
<bitfield name="RepoCommitTraverseFlags"
c:type="OstreeRepoCommitTraverseFlags">
- <source-position filename="ostree-repo.h" line="1192"/>
+ <source-position filename="ostree-repo.h" line="1196"/>
<member name="repo_commit_traverse_flag_none"
value="1"
c:identifier="OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE">
</bitfield>
<record name="RepoCommitTraverseIter"
c:type="OstreeRepoCommitTraverseIter">
- <source-position filename="ostree-repo.h" line="1186"/>
+ <source-position filename="ostree-repo.h" line="1190"/>
<field name="initialized" writable="1">
<type name="gboolean" c:type="gboolean"/>
</field>
</field>
<method name="clear"
c:identifier="ostree_repo_commit_traverse_iter_clear">
- <source-position filename="ostree-repo.h" line="1234"/>
+ <source-position filename="ostree-repo.h" line="1238"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
line="235">Return information on the current directory. This function may
only be called if %OSTREE_REPO_COMMIT_ITER_RESULT_DIR was returned
from ostree_repo_commit_traverse_iter_next().</doc>
- <source-position filename="ostree-repo.h" line="1228"/>
+ <source-position filename="ostree-repo.h" line="1232"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
line="214">Return information on the current file. This function may only be
called if %OSTREE_REPO_COMMIT_ITER_RESULT_FILE was returned from
ostree_repo_commit_traverse_iter_next().</doc>
- <source-position filename="ostree-repo.h" line="1223"/>
+ <source-position filename="ostree-repo.h" line="1227"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<doc xml:space="preserve"
filename="ostree-repo-traverse.c"
line="42">Initialize (in place) an iterator over the root of a commit object.</doc>
- <source-position filename="ostree-repo.h" line="1196"/>
+ <source-position filename="ostree-repo.h" line="1200"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<doc xml:space="preserve"
filename="ostree-repo-traverse.c"
line="86">Initialize (in place) an iterator over a directory tree.</doc>
- <source-position filename="ostree-repo.h" line="1204"/>
+ <source-position filename="ostree-repo.h" line="1208"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
If %OSTREE_REPO_COMMIT_ITER_RESULT_ERROR is returned, it is a
program error to call any further API on @iter except for
ostree_repo_commit_traverse_iter_clear().</doc>
- <source-position filename="ostree-repo.h" line="1218"/>
+ <source-position filename="ostree-repo.h" line="1222"/>
<return-value transfer-ownership="none">
<type name="RepoCommitIterResult"
c:type="OstreeRepoCommitIterResult"/>
</method>
<function name="cleanup"
c:identifier="ostree_repo_commit_traverse_iter_cleanup">
- <source-position filename="ostree-repo.h" line="1237"/>
+ <source-position filename="ostree-repo.h" line="1241"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<constructor name="new" c:identifier="ostree_repo_devino_cache_new">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1441">OSTree has support for pairing ostree_repo_checkout_tree_at() using
+ line="1449">OSTree has support for pairing ostree_repo_checkout_tree_at() using
hardlinks in combination with a later
ostree_repo_write_directory_to_mtree() using a (normally modified)
directory. In order for OSTree to optimally detect just the new
files, use this function and fill in the `devino_to_csum_cache`
member of `OstreeRepoCheckoutAtOptions`, then call
ostree_repo_commit_set_devino_cache().</doc>
- <source-position filename="ostree-repo.h" line="1008"/>
+ <source-position filename="ostree-repo.h" line="1012"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-repo-checkout.c"
- line="1452">Newly allocated cache</doc>
+ line="1460">Newly allocated cache</doc>
<type name="RepoDevInoCache" c:type="OstreeRepoDevInoCache*"/>
</return-value>
</constructor>
<method name="ref" c:identifier="ostree_repo_devino_cache_ref">
- <source-position filename="ostree-repo.h" line="1010"/>
+ <source-position filename="ostree-repo.h" line="1014"/>
<return-value transfer-ownership="full">
<type name="RepoDevInoCache" c:type="OstreeRepoDevInoCache*"/>
</return-value>
</parameters>
</method>
<method name="unref" c:identifier="ostree_repo_devino_cache_unref">
- <source-position filename="ostree-repo.h" line="1012"/>
+ <source-position filename="ostree-repo.h" line="1016"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
introspectable="0">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="834">An extensible options structure controlling archive creation. Ensure that
+ line="838">An extensible options structure controlling archive creation. Ensure that
you have entirely zeroed the structure, then set just the desired
options. This is used by ostree_repo_export_tree_to_archive().</doc>
- <source-position filename="ostree-repo.h" line="853"/>
+ <source-position filename="ostree-repo.h" line="857"/>
<field name="disable_xattrs" writable="1" bits="1">
<type name="guint" c:type="guint"/>
</field>
introspectable="0">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="805">An extensible options structure controlling archive import. Ensure that
+ line="809">An extensible options structure controlling archive import. Ensure that
you have entirely zeroed the structure, then set just the desired
options. This is used by ostree_repo_import_archive_to_mtree().</doc>
- <source-position filename="ostree-repo.h" line="823"/>
+ <source-position filename="ostree-repo.h" line="827"/>
<field name="ignore_unsupported_content" writable="1" bits="1">
<type name="guint" c:type="guint"/>
</field>
version="2017.11">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="780">Possibly change a pathname while importing an archive. If %NULL is returned,
+ line="784">Possibly change a pathname while importing an archive. If %NULL is returned,
then @src_path will be used unchanged. Otherwise, return a new pathname which
will be freed via `g_free()`.
Note that enabling pathname translation will always override the setting for
`use_ostree_convention`.</doc>
- <source-position filename="ostree-repo.h" line="800"/>
+ <source-position filename="ostree-repo.h" line="804"/>
<return-value transfer-ownership="full">
<type name="utf8" c:type="char*"/>
</return-value>
<parameter name="repo" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="782">Repo</doc>
+ line="786">Repo</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</parameter>
<parameter name="stbuf"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="783">Stat buffer</doc>
+ line="787">Stat buffer</doc>
<type name="gpointer" c:type="const stat*"/>
</parameter>
<parameter name="src_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="784">Path in the archive</doc>
+ line="788">Path in the archive</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="user_data"
closure="3">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="785">User data</doc>
+ line="789">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<bitfield name="RepoListObjectsFlags" c:type="OstreeRepoListObjectsFlags">
- <source-position filename="ostree-repo.h" line="1051"/>
+ <source-position filename="ostree-repo.h" line="1055"/>
<member name="loose"
value="1"
c:identifier="OSTREE_REPO_LIST_OBJECTS_LOOSE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1041">List only loose (plain file) objects</doc>
+ line="1045">List only loose (plain file) objects</doc>
</member>
<member name="packed"
value="2"
c:identifier="OSTREE_REPO_LIST_OBJECTS_PACKED">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1042">List only packed (compacted into blobs) objects</doc>
+ line="1046">List only packed (compacted into blobs) objects</doc>
</member>
<member name="all" value="4" c:identifier="OSTREE_REPO_LIST_OBJECTS_ALL">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1043">List all objects</doc>
+ line="1047">List all objects</doc>
</member>
<member name="no_parents"
value="8"
c:identifier="OSTREE_REPO_LIST_OBJECTS_NO_PARENTS">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1044">Only list objects in this repo, not parents</doc>
+ line="1048">Only list objects in this repo, not parents</doc>
</member>
</bitfield>
<bitfield name="RepoListRefsExtFlags" c:type="OstreeRepoListRefsExtFlags">
line="544">Exclude mirrored refs. Since: 2019.2</doc>
</member>
</bitfield>
+ <enumeration name="RepoLockType"
+ version="2021.3"
+ c:type="OstreeRepoLockType">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1571">Flags controlling repository locking.</doc>
+ <source-position filename="ostree-repo.h" line="1583"/>
+ <member name="shared" value="0" c:identifier="OSTREE_REPO_LOCK_SHARED">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1573">A "read only" lock; multiple readers are allowed.</doc>
+ </member>
+ <member name="exclusive"
+ value="1"
+ c:identifier="OSTREE_REPO_LOCK_EXCLUSIVE">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1574">A writable lock at most one writer can be active, and zero readers.</doc>
+ </member>
+ </enumeration>
<enumeration name="RepoMode" c:type="OstreeRepoMode">
<doc xml:space="preserve"
filename="ostree-core.h"
</member>
</enumeration>
<bitfield name="RepoPruneFlags" c:type="OstreeRepoPruneFlags">
- <source-position filename="ostree-repo.h" line="1251"/>
+ <source-position filename="ostree-repo.h" line="1255"/>
<member name="none"
value="0"
c:identifier="OSTREE_REPO_PRUNE_FLAGS_NONE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1243">No special options for pruning</doc>
+ line="1247">No special options for pruning</doc>
</member>
<member name="no_prune"
value="1"
c:identifier="OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1244">Don't actually delete objects</doc>
+ line="1248">Don't actually delete objects</doc>
</member>
<member name="refs_only"
value="2"
c:identifier="OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1245">Do not traverse individual commit objects, only follow refs</doc>
+ line="1249">Do not traverse individual commit objects, only follow refs</doc>
</member>
</bitfield>
<record name="RepoPruneOptions" c:type="OstreeRepoPruneOptions">
- <source-position filename="ostree-repo.h" line="1279"/>
+ <source-position filename="ostree-repo.h" line="1283"/>
<field name="flags" writable="1">
<type name="RepoPruneFlags" c:type="OstreeRepoPruneFlags"/>
</field>
</field>
</record>
<bitfield name="RepoPullFlags" c:type="OstreeRepoPullFlags">
- <source-position filename="ostree-repo.h" line="1316"/>
+ <source-position filename="ostree-repo.h" line="1320"/>
<member name="none" value="0" c:identifier="OSTREE_REPO_PULL_FLAGS_NONE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1302">No special options for pull</doc>
+ line="1306">No special options for pull</doc>
</member>
<member name="mirror"
value="1"
c:identifier="OSTREE_REPO_PULL_FLAGS_MIRROR">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1303">Write out refs suitable for mirrors and fetch all refs if none requested</doc>
+ line="1307">Write out refs suitable for mirrors and fetch all refs if none requested</doc>
</member>
<member name="commit_only"
value="2"
c:identifier="OSTREE_REPO_PULL_FLAGS_COMMIT_ONLY">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1304">Fetch only the commit metadata</doc>
+ line="1308">Fetch only the commit metadata</doc>
</member>
<member name="untrusted"
value="4"
c:identifier="OSTREE_REPO_PULL_FLAGS_UNTRUSTED">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1305">Do verify checksums of local (filesystem-accessible) repositories (defaults on for HTTP)</doc>
+ line="1309">Do verify checksums of local (filesystem-accessible) repositories (defaults on for HTTP)</doc>
</member>
<member name="bareuseronly_files"
value="8"
c:identifier="OSTREE_REPO_PULL_FLAGS_BAREUSERONLY_FILES">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1306">Since 2017.7. Reject writes of content objects with modes outside of 0775.</doc>
+ line="1310">Since 2017.7. Reject writes of content objects with modes outside of 0775.</doc>
</member>
<member name="trusted_http"
value="16"
c:identifier="OSTREE_REPO_PULL_FLAGS_TRUSTED_HTTP">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1307">Don't verify checksums of objects HTTP repositories (Since: 2017.12)</doc>
+ line="1311">Don't verify checksums of objects HTTP repositories (Since: 2017.12)</doc>
</member>
</bitfield>
<enumeration name="RepoRemoteChange" c:type="OstreeRepoRemoteChange">
<type name="guint64" c:type="guint64"/>
</field>
</record>
+ <bitfield name="RepoVerifyFlags"
+ version="2021.4"
+ c:type="OstreeRepoVerifyFlags">
+ <source-position filename="ostree-repo.h" line="1553"/>
+ <member name="none"
+ value="0"
+ c:identifier="OSTREE_REPO_VERIFY_FLAGS_NONE">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1543">No flags</doc>
+ </member>
+ <member name="no_gpg"
+ value="1"
+ c:identifier="OSTREE_REPO_VERIFY_FLAGS_NO_GPG">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1544">Skip GPG verification</doc>
+ </member>
+ <member name="no_signapi"
+ value="2"
+ c:identifier="OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI">
+ <doc xml:space="preserve"
+ filename="ostree-repo.h"
+ line="1545">Skip all other signature verification methods</doc>
+ </member>
+ </bitfield>
<record name="RollsumMatches" c:type="OstreeRollsumMatches">
<source-position filename="ostree-rollsum.h" line="37"/>
<field name="from_rollsums" writable="1">
c:type="OstreeStaticDeltaGenerateOpt">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1087">Parameters controlling optimization of static deltas.</doc>
- <source-position filename="ostree-repo.h" line="1097"/>
+ line="1091">Parameters controlling optimization of static deltas.</doc>
+ <source-position filename="ostree-repo.h" line="1101"/>
<member name="lowlatency"
value="0"
c:identifier="OSTREE_STATIC_DELTA_GENERATE_OPT_LOWLATENCY">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1089">Optimize for speed of delta creation over space</doc>
+ line="1093">Optimize for speed of delta creation over space</doc>
</member>
<member name="major"
value="1"
c:identifier="OSTREE_STATIC_DELTA_GENERATE_OPT_MAJOR">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1090">Optimize for delta size (may be very slow)</doc>
+ line="1094">Optimize for delta size (may be very slow)</doc>
</member>
</enumeration>
<enumeration name="StaticDeltaIndexFlags"
c:type="OstreeStaticDeltaIndexFlags">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1109">Flags controlling static delta index generation.</doc>
- <source-position filename="ostree-repo.h" line="1117"/>
+ line="1113">Flags controlling static delta index generation.</doc>
+ <source-position filename="ostree-repo.h" line="1121"/>
<member name="static_delta_index_flags_none"
value="0"
c:identifier="OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE">
<doc xml:space="preserve"
filename="ostree-repo.h"
- line="1111">No special flags</doc>
+ line="1115">No special flags</doc>
</member>
</enumeration>
<class name="Sysroot"
<constructor name="new" c:identifier="ostree_sysroot_new">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="204">Create a new #OstreeSysroot object for the sysroot at @path. If @path is %NULL,
+ line="203">Create a new #OstreeSysroot object for the sysroot at @path. If @path is %NULL,
the current visible root file system is used, equivalent to
ostree_sysroot_new_default().</doc>
<source-position filename="ostree-sysroot.h" line="39"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="213">An accessor object for an system root located at @path</doc>
+ line="212">An accessor object for an system root located at @path</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</return-value>
<parameters>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="206">Path to a system root directory, or %NULL to use the
+ line="205">Path to a system root directory, or %NULL to use the
current visible root file system</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="224">An accessor for the current visible root / filesystem</doc>
+ line="223">An accessor for the current visible root / filesystem</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</return-value>
</constructor>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1343">Path to deployment origin file</doc>
+ line="1342">Path to deployment origin file</doc>
<type name="Gio.File" c:type="GFile*"/>
</return-value>
<parameters>
<parameter name="deployment_path" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1341">A deployment path</doc>
+ line="1340">A deployment path</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2855">Older version of ostree_sysroot_stage_tree_with_options().</doc>
+ line="2891">Older version of ostree_sysroot_stage_tree_with_options().</doc>
<source-position filename="ostree-sysroot.h" line="208"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2857">Sysroot</doc>
+ line="2893">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2858">osname to use for merge deployment</doc>
+ line="2894">osname to use for merge deployment</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="revision" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2859">Checksum to add</doc>
+ line="2895">Checksum to add</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="origin"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2860">Origin to use for upgrades</doc>
+ line="2896">Origin to use for upgrades</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
<parameter name="provided_merge_deployment"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2861">Use this deployment for merge path</doc>
+ line="2897">Use this deployment for merge path</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="override_kernel_argv"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2862">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment</doc>
+ line="2898">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment</doc>
<array c:type="char**">
<type name="utf8"/>
</array>
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2863">The new deployment path</doc>
+ line="2899">The new deployment path</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2864">Cancellable</doc>
+ line="2900">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2808">Check out deployment tree with revision @revision, performing a 3
+ line="2844">Check out deployment tree with revision @revision, performing a 3
way merge with @provided_merge_deployment for configuration.
When booted into the sysroot, you should use the
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2810">Sysroot</doc>
+ line="2846">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2811">osname to use for merge deployment</doc>
+ line="2847">osname to use for merge deployment</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="revision" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2812">Checksum to add</doc>
+ line="2848">Checksum to add</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="origin"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2813">Origin to use for upgrades</doc>
+ line="2849">Origin to use for upgrades</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
<parameter name="provided_merge_deployment"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2814">Use this deployment for merge path</doc>
+ line="2850">Use this deployment for merge path</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="opts"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2815">Options</doc>
+ line="2851">Options</doc>
<type name="SysrootDeployTreeOpts"
c:type="OstreeSysrootDeployTreeOpts*"/>
</parameter>
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2816">The new deployment path</doc>
+ line="2852">The new deployment path</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2817">Cancellable</doc>
+ line="2853">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3278">Entirely replace the kernel arguments of @deployment with the
+ line="3292">Entirely replace the kernel arguments of @deployment with the
values in @new_kargs.</doc>
<source-position filename="ostree-sysroot.h" line="166"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3280">Sysroot</doc>
+ line="3294">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3281">A deployment</doc>
+ line="3295">A deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="new_kargs" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3282">Replace deployment's kernel arguments</doc>
+ line="3296">Replace deployment's kernel arguments</doc>
<array c:type="char**">
<type name="utf8"/>
</array>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3283">Cancellable</doc>
+ line="3297">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3327">By default, deployment directories are not mutable. This function
+ line="3341">By default, deployment directories are not mutable. This function
will allow making them temporarily mutable, for example to allow
layering additional non-OSTree content.</doc>
<source-position filename="ostree-sysroot.h" line="253"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3329">Sysroot</doc>
+ line="3343">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3330">A deployment</doc>
+ line="3344">A deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="is_mutable" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3331">Whether or not deployment's files can be changed</doc>
+ line="3345">Whether or not deployment's files can be changed</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3332">Cancellable</doc>
+ line="3346">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2206">By default, deployments may be subject to garbage collection. Typical uses of
+ line="2205">By default, deployments may be subject to garbage collection. Typical uses of
libostree only retain at most 2 deployments. If @is_pinned is `TRUE`, a
metadata bit will be set causing libostree to avoid automatic GC of the
deployment. However, this is really an "advisory" note; it's still possible
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2208">Sysroot</doc>
+ line="2207">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2209">A deployment</doc>
+ line="2208">A deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="is_pinned" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2210">Whether or not deployment will be automatically GC'd</doc>
+ line="2209">Whether or not deployment will be automatically GC'd</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2000">Configure the target deployment @deployment such that it
+ line="1999">Configure the target deployment @deployment such that it
is writable. There are multiple modes, essentially differing
in whether or not any changes persist across reboot.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2002">Sysroot</doc>
+ line="2001">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2003">Deployment</doc>
+ line="2002">Deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="unlocked_state" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2004">Transition to this unlocked state</doc>
+ line="2003">Transition to this unlocked state</doc>
<type name="DeploymentUnlockedState"
c:type="OstreeDeploymentUnlockedState"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="2005">Cancellable</doc>
+ line="2004">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="425">Ensure that @self is set up as a valid rootfs, by creating
+ line="424">Ensure that @self is set up as a valid rootfs, by creating
/ostree/repo, among other things.</doc>
<source-position filename="ostree-sysroot.h" line="75"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="427">Sysroot</doc>
+ line="426">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="428">Cancellable</doc>
+ line="427">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1239">The currently booted deployment, or %NULL if none</doc>
+ line="1238">The currently booted deployment, or %NULL if none</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1237">Sysroot</doc>
+ line="1236">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1329">Path to deployment root directory</doc>
+ line="1328">Path to deployment root directory</doc>
<type name="Gio.File" c:type="GFile*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1326">Sysroot</doc>
+ line="1325">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1327">A deployment</doc>
+ line="1326">A deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
</parameters>
c:identifier="ostree_sysroot_get_deployment_dirpath">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1303">Note this function only returns a *relative* path - if you want
+ line="1302">Note this function only returns a *relative* path - if you want
to access, it, you must either use fd-relative api such as openat(),
or concatenate it with the full ostree_sysroot_get_path().</doc>
<source-position filename="ostree-sysroot.h" line="98"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1312">Path to deployment root directory, relative to sysroot</doc>
+ line="1311">Path to deployment root directory, relative to sysroot</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1305">Repo</doc>
+ line="1304">Repo</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1306">A deployment</doc>
+ line="1305">A deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
</parameters>
<return-value transfer-ownership="container">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1290">Ordered list of deployments</doc>
+ line="1289">Ordered list of deployments</doc>
<array name="GLib.PtrArray" c:type="GPtrArray*">
<type name="Deployment"/>
</array>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1288">Sysroot</doc>
+ line="1287">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<method name="get_fd" c:identifier="ostree_sysroot_get_fd">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="361">Access a file descriptor that refers to the root directory of this sysroot.
+ line="360">Access a file descriptor that refers to the root directory of this sysroot.
ostree_sysroot_initialize() (or ostree_sysroot_load()) must have been invoked
prior to calling this function.</doc>
<source-position filename="ostree-sysroot.h" line="54"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="369">A file descriptor valid for the lifetime of @self</doc>
+ line="368">A file descriptor valid for the lifetime of @self</doc>
<type name="gint" c:type="int"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="363">Sysroot</doc>
+ line="362">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
c:identifier="ostree_sysroot_get_merge_deployment">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1555">Find the deployment to use as a configuration merge source; this is
+ line="1554">Find the deployment to use as a configuration merge source; this is
the first one in the current deployment list which matches osname.</doc>
<source-position filename="ostree-sysroot.h" line="279"/>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1563">Configuration merge deployment</doc>
+ line="1562">Configuration merge deployment</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1557">Sysroot</doc>
+ line="1556">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1558">Operating system group</doc>
+ line="1557">Operating system group</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="263">Path to rootfs</doc>
+ line="262">Path to rootfs</doc>
<type name="Gio.File" c:type="GFile*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="261">Sysroot</doc>
+ line="260">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1354">Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open
+ line="1353">Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open
(see ostree_repo_open()).</doc>
<source-position filename="ostree-sysroot.h" line="160"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1364">%TRUE on success, %FALSE otherwise</doc>
+ line="1363">%TRUE on success, %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1356">Sysroot</doc>
+ line="1355">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="out_repo"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1357">Repository in sysroot @self</doc>
+ line="1356">Repository in sysroot @self</doc>
<type name="Repo" c:type="OstreeRepo**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1358">Cancellable</doc>
+ line="1357">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1274">The currently staged deployment, or %NULL if none</doc>
+ line="1273">The currently staged deployment, or %NULL if none</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1272">Sysroot</doc>
+ line="1271">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1751">Initialize the directory structure for an "osname", which is a
+ line="1750">Initialize the directory structure for an "osname", which is a
group of operating system deployments, with a shared `/var`. One
is required for generating a deployment.</doc>
<source-position filename="ostree-sysroot.h" line="124"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1753">Sysroot</doc>
+ line="1752">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1754">Name group of operating system checkouts</doc>
+ line="1753">Name group of operating system checkouts</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1755">Cancellable</doc>
+ line="1754">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="954">Subset of ostree_sysroot_load(); performs basic initialization. Notably, one
+ line="953">Subset of ostree_sysroot_load(); performs basic initialization. Notably, one
can invoke `ostree_sysroot_get_fd()` after calling this function.
It is not necessary to call this function if ostree_sysroot_load() is
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="956">sysroot</doc>
+ line="955">sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
version="2020.1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="378">Can only be invoked after `ostree_sysroot_initialize()`.</doc>
+ line="377">Can only be invoked after `ostree_sysroot_initialize()`.</doc>
<source-position filename="ostree-sysroot.h" line="51"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="384">%TRUE iff the sysroot points to a booted deployment</doc>
+ line="383">%TRUE iff the sysroot points to a booted deployment</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="380">Sysroot</doc>
+ line="379">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<method name="load" c:identifier="ostree_sysroot_load" throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="910">Load deployment list, bootversion, and subbootversion from the
+ line="909">Load deployment list, bootversion, and subbootversion from the
rootfs @self.</doc>
<source-position filename="ostree-sysroot.h" line="61"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="912">Sysroot</doc>
+ line="911">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="913">Cancellable</doc>
+ line="912">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1169">#OstreeSysroot</doc>
+ line="1168">#OstreeSysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="out_changed"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1171">Cancellable</doc>
+ line="1170">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
<method name="lock" c:identifier="ostree_sysroot_lock" throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1605">Acquire an exclusive multi-process write lock for @self. This call
+ line="1604">Acquire an exclusive multi-process write lock for @self. This call
blocks until the lock has been acquired. The lock is not
reentrant.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1607">Self</doc>
+ line="1606">Self</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<method name="lock_async" c:identifier="ostree_sysroot_lock_async">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1715">An asynchronous version of ostree_sysroot_lock().</doc>
+ line="1714">An asynchronous version of ostree_sysroot_lock().</doc>
<source-position filename="ostree-sysroot.h" line="112"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1717">Self</doc>
+ line="1716">Self</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1718">Cancellable</doc>
+ line="1717">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
closure="2">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1719">Callback</doc>
+ line="1718">Callback</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1720">User data</doc>
+ line="1719">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1734">Call when ostree_sysroot_lock_async() is ready.</doc>
+ line="1733">Call when ostree_sysroot_lock_async() is ready.</doc>
<source-position filename="ostree-sysroot.h" line="117"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1736">Self</doc>
+ line="1735">Self</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1737">Result</doc>
+ line="1736">Result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1594">A new config file which sets @refspec as an origin</doc>
+ line="1593">A new config file which sets @refspec as an origin</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1591">Sysroot</doc>
+ line="1590">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="refspec" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1592">A refspec</doc>
+ line="1591">A refspec</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
version="2017.7">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1498">Find the pending and rollback deployments for @osname. Pass %NULL for @osname
+ line="1497">Find the pending and rollback deployments for @osname. Pass %NULL for @osname
to use the booted deployment's osname. By default, pending deployment is the
first deployment in the order that matches @osname, and @rollback will be the
next one after the booted deployment, or the deployment after the pending if
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1500">Sysroot</doc>
+ line="1499">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1501">"stateroot" name</doc>
+ line="1500">"stateroot" name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_pending"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1502">The pending deployment</doc>
+ line="1501">The pending deployment</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
<parameter name="out_rollback"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1503">The rollback deployment</doc>
+ line="1502">The rollback deployment</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
</parameters>
<method name="repo" c:identifier="ostree_sysroot_repo" version="2017.7">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1379">This function is a variant of ostree_sysroot_get_repo() that cannot fail, and
+ line="1378">This function is a variant of ostree_sysroot_get_repo() that cannot fail, and
returns a cached repository. Can only be called after ostree_sysroot_initialize()
or ostree_sysroot_load() has been invoked successfully.</doc>
<source-position filename="ostree-sysroot.h" line="157"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1387">The OSTree repository in sysroot @self.</doc>
+ line="1386">The OSTree repository in sysroot @self.</doc>
<type name="Repo" c:type="OstreeRepo*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1381">Sysroot</doc>
+ line="1380">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1250">Find the booted deployment, or return an error if not booted via OSTree.</doc>
+ line="1249">Find the booted deployment, or return an error if not booted via OSTree.</doc>
<source-position filename="ostree-sysroot.h" line="89"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1256">The currently booted deployment, or an error</doc>
+ line="1255">The currently booted deployment, or an error</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1252">Sysroot</doc>
+ line="1251">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
version="2020.1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="232">If this function is invoked, then libostree will assume that
+ line="231">If this function is invoked, then libostree will assume that
a private Linux mount namespace has been created by the process.
The primary use case for this is to have e.g. /sysroot mounted
read-only by default.
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1815">Prepend @new_deployment to the list of deployments, commit, and
+ line="1814">Prepend @new_deployment to the list of deployments, commit, and
cleanup. By default, all other deployments for the given @osname
except the merge deployment and the booted deployment will be
garbage collected.
<instance-parameter name="sysroot" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1817">Sysroot</doc>
+ line="1816">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1818">OS name</doc>
+ line="1817">OS name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="new_deployment" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1819">Prepend this deployment to the list</doc>
+ line="1818">Prepend this deployment to the list</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="merge_deployment"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1820">Use this deployment for configuration merge</doc>
+ line="1819">Use this deployment for configuration merge</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1821">Flags controlling behavior</doc>
+ line="1820">Flags controlling behavior</doc>
<type name="SysrootSimpleWriteDeploymentFlags"
c:type="OstreeSysrootSimpleWriteDeploymentFlags"/>
</parameter>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1822">Cancellable</doc>
+ line="1821">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2947">Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which
+ line="2983">Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which
can be passed to ostree_sysroot_deploy_tree_with_options() or
ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option.</doc>
<source-position filename="ostree-sysroot.h" line="193"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2949">Sysroot</doc>
+ line="2985">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="fd" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2950">File descriptor to overlay initrd</doc>
+ line="2986">File descriptor to overlay initrd</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="out_checksum"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2951">Overlay initrd checksum</doc>
+ line="2987">Overlay initrd checksum</doc>
<type name="utf8" c:type="char**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="2952">Cancellable</doc>
+ line="2988">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3004">Older version of ostree_sysroot_stage_tree_with_options().</doc>
+ line="3040">Older version of ostree_sysroot_stage_tree_with_options().</doc>
<source-position filename="ostree-sysroot.h" line="230"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3006">Sysroot</doc>
+ line="3042">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3007">osname to use for merge deployment</doc>
+ line="3043">osname to use for merge deployment</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="revision" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3008">Checksum to add</doc>
+ line="3044">Checksum to add</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="origin"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3009">Origin to use for upgrades</doc>
+ line="3045">Origin to use for upgrades</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
<parameter name="merge_deployment"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3010">Use this deployment for merge path</doc>
+ line="3046">Use this deployment for merge path</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="override_kernel_argv"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3011">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment</doc>
+ line="3047">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment</doc>
<array c:type="char**">
<type name="utf8"/>
</array>
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3012">The new deployment path</doc>
+ line="3048">The new deployment path</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3013">Cancellable</doc>
+ line="3049">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3038">Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS
+ line="3074">Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS
shutdown time.</doc>
<source-position filename="ostree-sysroot.h" line="241"/>
<return-value transfer-ownership="none">
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3040">Sysroot</doc>
+ line="3076">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="osname"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3041">osname to use for merge deployment</doc>
+ line="3077">osname to use for merge deployment</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="revision" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3042">Checksum to add</doc>
+ line="3078">Checksum to add</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="origin"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3043">Origin to use for upgrades</doc>
+ line="3079">Origin to use for upgrades</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
<parameter name="merge_deployment"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3044">Use this deployment for merge path</doc>
+ line="3080">Use this deployment for merge path</doc>
<type name="Deployment" c:type="OstreeDeployment*"/>
</parameter>
<parameter name="opts" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3045">Options</doc>
+ line="3081">Options</doc>
<type name="SysrootDeployTreeOpts"
c:type="OstreeSysrootDeployTreeOpts*"/>
</parameter>
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3046">The new deployment path</doc>
+ line="3082">The new deployment path</doc>
<type name="Deployment" c:type="OstreeDeployment**"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-sysroot-deploy.c"
- line="3047">Cancellable</doc>
+ line="3083">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1631">Try to acquire an exclusive multi-process write lock for @self. If
+ line="1630">Try to acquire an exclusive multi-process write lock for @self. If
another process holds the lock, this function will return
immediately, setting @out_acquired to %FALSE, and returning %TRUE
(and no error).
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1633">Self</doc>
+ line="1632">Self</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
<parameter name="out_acquired"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1634">Whether or not the lock has been acquired</doc>
+ line="1633">Whether or not the lock has been acquired</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
</parameters>
<method name="unload" c:identifier="ostree_sysroot_unload">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="407">Release any resources such as file descriptors referring to the
+ line="406">Release any resources such as file descriptors referring to the
root directory of this sysroot. Normally, those resources are
cleared by finalization, but in garbage collected languages that
may not be predictable.
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="409">Sysroot</doc>
+ line="408">Sysroot</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<method name="unlock" c:identifier="ostree_sysroot_unlock">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1679">Clear the lock previously acquired with ostree_sysroot_lock(). It
+ line="1678">Clear the lock previously acquired with ostree_sysroot_lock(). It
is safe to call this function if the lock has not been previously
acquired.</doc>
<source-position filename="ostree-sysroot.h" line="121"/>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot.c"
- line="1681">Self</doc>
+ line="1680">Self</doc>
<type name="Sysroot" c:type="OstreeSysroot*"/>
</instance-parameter>
</parameters>
<constructor name="new"
c:identifier="ostree_sysroot_upgrader_new"
throws="1">
- <source-position filename="ostree-sysroot-upgrader.h" line="53"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="56"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
<constructor name="new_for_os"
c:identifier="ostree_sysroot_upgrader_new_for_os"
throws="1">
- <source-position filename="ostree-sysroot-upgrader.h" line="58"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="61"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
<constructor name="new_for_os_with_flags"
c:identifier="ostree_sysroot_upgrader_new_for_os_with_flags"
throws="1">
- <source-position filename="ostree-sysroot-upgrader.h" line="64"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="67"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
line="403">Check that the timestamp on @to_rev is equal to or newer than
@from_rev. This protects systems against man-in-the-middle
attackers which provide a client with an older commit.</doc>
- <source-position filename="ostree-sysroot-upgrader.h" line="82"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="85"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
filename="ostree-sysroot-upgrader.c"
line="632">Write the new deployment to disk, perform a configuration merge
with /etc, and update the bootloader configuration.</doc>
- <source-position filename="ostree-sysroot-upgrader.h" line="113"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="116"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="dup_origin"
c:identifier="ostree_sysroot_upgrader_dup_origin">
- <source-position filename="ostree-sysroot-upgrader.h" line="73"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="76"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
</method>
<method name="get_origin"
c:identifier="ostree_sysroot_upgrader_get_origin">
- <source-position filename="ostree-sysroot-upgrader.h" line="71"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="74"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
</method>
<method name="get_origin_description"
c:identifier="ostree_sysroot_upgrader_get_origin_description">
- <source-position filename="ostree-sysroot-upgrader.h" line="79"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="82"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
If the origin remote is unchanged, @out_changed will be set to
%FALSE.</doc>
- <source-position filename="ostree-sysroot-upgrader.h" line="94"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="97"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
line="471">Like ostree_sysroot_upgrader_pull(), but allows retrieving just a
subpath of the tree. This can be used to download metadata files
from inside the tree such as package databases.</doc>
- <source-position filename="ostree-sysroot-upgrader.h" line="103"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="106"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<doc xml:space="preserve"
filename="ostree-sysroot-upgrader.c"
line="363">Replace the origin with @origin.</doc>
- <source-position filename="ostree-sysroot-upgrader.h" line="75"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="78"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
filename="ostree-sysroot-upgrader.h"
line="37">Do not error if the origin has an unconfigured-state key</doc>
</member>
+ <member name="stage"
+ value="4"
+ c:identifier="OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE"
+ glib:nick="stage">
+ <doc xml:space="preserve"
+ filename="ostree-sysroot-upgrader.h"
+ line="38">Enable "staging" (finalization at shutdown); recommended
+ (Since: 2021.4)</doc>
+ </member>
</bitfield>
<bitfield name="SysrootUpgraderPullFlags"
c:type="OstreeSysrootUpgraderPullFlags">
- <source-position filename="ostree-sysroot-upgrader.h" line="91"/>
+ <source-position filename="ostree-sysroot-upgrader.h" line="94"/>
<member name="none"
value="0"
c:identifier="OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE">
<source-position filename="ostree-tls-cert-interaction.h" line="35"/>
</record>
<constant name="VERSION"
- value="2021.200000"
+ value="2021.500000"
c:type="OSTREE_VERSION"
version="2017.4">
<doc xml:space="preserve"
<type name="gdouble" c:type="gdouble"/>
</constant>
<constant name="VERSION_S"
- value="2021.2"
+ value="2021.5"
c:type="OSTREE_VERSION_S"
version="2017.4">
<doc xml:space="preserve"
<function name="check_version"
c:identifier="ostree_check_version"
version="2017.4">
- <source-position filename="ostree-core.h" line="575"/>
+ <source-position filename="ostree-core.h" line="584"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2711">%TRUE if current libostree has at least the requested version, %FALSE otherwise</doc>
+ line="2719">%TRUE if current libostree has at least the requested version, %FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="required_year" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2708">Major/year required</doc>
+ line="2716">Major/year required</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="required_release" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2709">Release version required</doc>
+ line="2717">Release version required</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1552">Modified base64 encoding of @csum
+ line="1560">Modified base64 encoding of @csum
The "modified" term refers to the fact that instead of '/', the '_'
character is used.</doc>
<parameter name="csum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1550">An binary checksum of length 32</doc>
+ line="1558">An binary checksum of length 32</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
introspectable="0">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1480">Overwrite the contents of @buf with modified base64 encoding of @csum.
+ line="1488">Overwrite the contents of @buf with modified base64 encoding of @csum.
The "modified" term refers to the fact that instead of '/', the '_'
character is used.</doc>
<source-position filename="ostree-core.h" line="319"/>
<parameter name="csum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1482">An binary checksum of length 32</doc>
+ line="1490">An binary checksum of length 32</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
<parameter name="buf" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1483">Output location, must be at least 44 bytes in length</doc>
+ line="1491">Output location, must be at least 44 bytes in length</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
introspectable="0">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1361">Overwrite the contents of @buf with stringified version of @csum.</doc>
+ line="1369">Overwrite the contents of @buf with stringified version of @csum.</doc>
<source-position filename="ostree-core.h" line="305"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1363">An binary checksum of length 32</doc>
+ line="1371">An binary checksum of length 32</doc>
<array zero-terminated="0" c:type="const char*" fixed-size="32">
<type name="utf8" c:type="char"/>
</array>
<parameter name="buf" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1364">Output location, must be at least 45 bytes in length</doc>
+ line="1372">Output location, must be at least 45 bytes in length</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1454">Binary version of @checksum.</doc>
+ line="1462">Binary version of @checksum.</doc>
<array zero-terminated="0" c:type="guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1452">An ASCII checksum</doc>
+ line="1460">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1571">Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL.</doc>
+ line="1579">Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL.</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8"/>
</array>
<parameter name="bytes" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1569">#GVariant of type ay</doc>
+ line="1577">#GVariant of type ay</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1584">Like ostree_checksum_bytes_peek(), but also throws @error.</doc>
+ line="1592">Like ostree_checksum_bytes_peek(), but also throws @error.</doc>
<source-position filename="ostree-core.h" line="330"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1591">Binary checksum data</doc>
+ line="1599">Binary checksum data</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8"/>
</array>
<parameter name="bytes" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1586">#GVariant of type ay</doc>
+ line="1594">#GVariant of type ay</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
c:identifier="ostree_checksum_file_async">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1052">Asynchronously compute the OSTree checksum for a given file;
+ line="1060">Asynchronously compute the OSTree checksum for a given file;
complete with ostree_checksum_file_async_finish().</doc>
- <source-position filename="ostree-core.h" line="482"/>
+ <source-position filename="ostree-core.h" line="491"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameter name="f" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1054">File path</doc>
+ line="1062">File path</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1055">Object type</doc>
+ line="1063">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
<parameter name="io_priority" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1056">Priority for operation, see %G_IO_PRIORITY_DEFAULT</doc>
+ line="1064">Priority for operation, see %G_IO_PRIORITY_DEFAULT</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="cancellable"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1057">Cancellable</doc>
+ line="1065">Cancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
closure="5">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1058">Invoked when operation is complete</doc>
+ line="1066">Invoked when operation is complete</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1059">Data for @callback</doc>
+ line="1067">Data for @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1086">Finish computing the OSTree checksum for a given file; see
+ line="1094">Finish computing the OSTree checksum for a given file; see
ostree_checksum_file_async().</doc>
- <source-position filename="ostree-core.h" line="490"/>
+ <source-position filename="ostree-core.h" line="499"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameter name="f" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1088">File path</doc>
+ line="1096">File path</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1089">Async result</doc>
+ line="1097">Async result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
<parameter name="out_csum"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1090">Return location for binary checksum</doc>
+ line="1098">Return location for binary checksum</doc>
<array zero-terminated="0" c:type="guchar**" fixed-size="32">
<type name="guint8" c:type="guchar*"/>
</array>
line="945">Compute the OSTree checksum for a given file. This is an fd-relative version
of ostree_checksum_file() which also takes flags and fills in a caller
allocated buffer.</doc>
- <source-position filename="ostree-core.h" line="472"/>
+ <source-position filename="ostree-core.h" line="481"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1526">String form of @csum</doc>
+ line="1534">String form of @csum</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="csum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1524">An binary checksum of length 32</doc>
+ line="1532">An binary checksum of length 32</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1540">String form of @csum_bytes</doc>
+ line="1548">String form of @csum_bytes</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="csum_v" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1538">#GVariant of type ay</doc>
+ line="1546">#GVariant of type ay</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
introspectable="0">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1466">Overwrite the contents of @buf with stringified version of @csum.</doc>
+ line="1474">Overwrite the contents of @buf with stringified version of @csum.</doc>
<source-position filename="ostree-core.h" line="316"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
<parameter name="csum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1468">An binary checksum of length 32</doc>
+ line="1476">An binary checksum of length 32</doc>
<array zero-terminated="0" c:type="const guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
<parameter name="buf" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1469">Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length</doc>
+ line="1477">Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
c:identifier="ostree_checksum_inplace_to_bytes">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1390">Convert @checksum from a string to binary in-place, without
+ line="1398">Convert @checksum from a string to binary in-place, without
allocating memory. Use this function in hot code paths.</doc>
<source-position filename="ostree-core.h" line="323"/>
<return-value transfer-ownership="none">
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1392">a SHA256 string</doc>
+ line="1400">a SHA256 string</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="buf" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1393">Output buffer with at least 32 bytes of space</doc>
+ line="1401">Output buffer with at least 32 bytes of space</doc>
<type name="guint8" c:type="guchar*"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1426">Binary checksum from @checksum of length 32; free with g_free().</doc>
+ line="1434">Binary checksum from @checksum of length 32; free with g_free().</doc>
<array zero-terminated="0" c:type="guchar*" fixed-size="32">
<type name="guint8" c:type="guchar"/>
</array>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1424">An ASCII checksum</doc>
+ line="1432">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1440">New #GVariant of type ay with length 32</doc>
+ line="1448">New #GVariant of type ay with length 32</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1438">An ASCII checksum</doc>
+ line="1446">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
c:identifier="ostree_cmp_checksum_bytes">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1312">Compare two binary checksums, using memcmp().</doc>
+ line="1320">Compare two binary checksums, using memcmp().</doc>
<source-position filename="ostree-core.h" line="333"/>
<return-value transfer-ownership="none">
<type name="gint" c:type="int"/>
<parameter name="a" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1314">A binary checksum</doc>
+ line="1322">A binary checksum</doc>
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="b" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1315">A binary checksum</doc>
+ line="1323">A binary checksum</doc>
<type name="guint8" c:type="const guchar*"/>
</parameter>
</parameters>
version="2018.2">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2392">There are use cases where one wants a checksum just of the content of a
+ line="2400">There are use cases where one wants a checksum just of the content of a
commit. OSTree commits by default capture the current timestamp, and may have
additional metadata, which means that re-committing identical content
often results in a new checksum.
The content checksums is simply defined as `SHA256(root dirtree_checksum || root_dirmeta_checksum)`,
i.e. the SHA-256 of the root "dirtree" object's checksum concatenated with the
root "dirmeta" checksum (both in binary form, not hexadecimal).</doc>
- <source-position filename="ostree-core.h" line="535"/>
+ <source-position filename="ostree-core.h" line="544"/>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2408">A SHA-256 hex string, or %NULL if @commit_variant is not well-formed</doc>
+ line="2416">A SHA-256 hex string, or %NULL if @commit_variant is not well-formed</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="commit_variant" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2394">A commit object</doc>
+ line="2402">A commit object</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2566">Reads a commit's "ostree.sizes" metadata and returns an array of
+ line="2574">Reads a commit's "ostree.sizes" metadata and returns an array of
#OstreeCommitSizesEntry in @out_sizes_entries. Each element
represents an object in the commit. If the commit does not contain
the "ostree.sizes" metadata, a %G_IO_ERROR_NOT_FOUND error will be
returned.</doc>
- <source-position filename="ostree-core.h" line="570"/>
+ <source-position filename="ostree-core.h" line="579"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameter name="commit_variant" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2568">variant of type %OSTREE_OBJECT_TYPE_COMMIT</doc>
+ line="2576">variant of type %OSTREE_OBJECT_TYPE_COMMIT</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="out_sizes_entries"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2569">
+ line="2577">
return location for an array of object size entries</doc>
<array name="GLib.PtrArray" c:type="GPtrArray**">
<type name="CommitSizesEntry"/>
</parameters>
</function>
<function name="commit_get_parent" c:identifier="ostree_commit_get_parent">
- <source-position filename="ostree-core.h" line="530"/>
+ <source-position filename="ostree-core.h" line="539"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2363">Checksum of the parent commit of @commit_variant, or %NULL
+ line="2371">Checksum of the parent commit of @commit_variant, or %NULL
if none</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameter name="commit_variant" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2361">Variant of type %OSTREE_OBJECT_TYPE_COMMIT</doc>
+ line="2369">Variant of type %OSTREE_OBJECT_TYPE_COMMIT</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
<function name="commit_get_timestamp"
c:identifier="ostree_commit_get_timestamp"
version="2016.3">
- <source-position filename="ostree-core.h" line="532"/>
+ <source-position filename="ostree-core.h" line="541"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2380">timestamp in seconds since the Unix epoch, UTC</doc>
+ line="2388">timestamp in seconds since the Unix epoch, UTC</doc>
<type name="guint64" c:type="guint64"/>
</return-value>
<parameters>
<parameter name="commit_variant" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2378">Commit object</doc>
+ line="2386">Commit object</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</function>
<function name="create_directory_metadata"
c:identifier="ostree_create_directory_metadata">
- <source-position filename="ostree-core.h" line="496"/>
+ <source-position filename="ostree-core.h" line="505"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1138">A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META</doc>
+ line="1146">A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="dir_info" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1135">a #GFileInfo containing directory information</doc>
+ line="1143">a #GFileInfo containing directory information</doc>
<type name="Gio.FileInfo" c:type="GFileInfo*"/>
</parameter>
<parameter name="xattrs"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1136">Optional extended attributes</doc>
+ line="1144">Optional extended attributes</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
<function name="diff_print" c:identifier="ostree_diff_print">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="477">Print the contents of a diff to stdout.</doc>
+ line="480">Print the contents of a diff to stdout.</doc>
<source-position filename="ostree-diff.h" line="113"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
<parameter name="a" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="479">First directory path</doc>
+ line="482">First directory path</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="b" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="480">First directory path</doc>
+ line="483">First directory path</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="modified" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="481">Modified files</doc>
+ line="484">Modified files</doc>
<array name="GLib.PtrArray" c:type="GPtrArray*">
<type name="DiffItem"/>
</array>
<parameter name="removed" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="482">Removed files</doc>
+ line="485">Removed files</doc>
<array name="GLib.PtrArray" c:type="GPtrArray*">
<type name="Gio.File"/>
</array>
<parameter name="added" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-diff.c"
- line="483">Added files</doc>
+ line="486">Added files</doc>
<array name="GLib.PtrArray" c:type="GPtrArray*">
<type name="Gio.File"/>
</array>
<function name="hash_object_name" c:identifier="ostree_hash_object_name">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1293">Use this function with #GHashTable and ostree_object_name_serialize().</doc>
+ line="1301">Use this function with #GHashTable and ostree_object_name_serialize().</doc>
<source-position filename="ostree-core.h" line="357"/>
<return-value transfer-ownership="none">
<type name="guint" c:type="guint"/>
allow-none="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1295">A #GVariant containing a serialized object</doc>
+ line="1303">A #GVariant containing a serialized object</doc>
<type name="gpointer" c:type="gconstpointer"/>
</parameter>
</parameters>
c:identifier="ostree_object_from_string">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1272">Reverse ostree_object_to_string().</doc>
+ line="1280">Reverse ostree_object_to_string().</doc>
<source-position filename="ostree-core.h" line="373"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1274">An ASCII checksum</doc>
+ line="1282">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="out_checksum"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1275">Parsed checksum</doc>
+ line="1283">Parsed checksum</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="out_objtype"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1276">Parsed object type</doc>
+ line="1284">Parsed object type</doc>
<type name="ObjectType" c:type="OstreeObjectType*"/>
</parameter>
</parameters>
c:identifier="ostree_object_name_deserialize">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1342">Reverse ostree_object_name_serialize(). Note that @out_checksum is
+ line="1350">Reverse ostree_object_name_serialize(). Note that @out_checksum is
only valid for the lifetime of @variant, and must not be freed.</doc>
<source-position filename="ostree-core.h" line="364"/>
<return-value transfer-ownership="none">
<parameter name="variant" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1344">A #GVariant of type (su)</doc>
+ line="1352">A #GVariant of type (su)</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="out_checksum"
transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1345">Pointer into string memory of @variant with checksum</doc>
+ line="1353">Pointer into string memory of @variant with checksum</doc>
<type name="utf8" c:type="const char**"/>
</parameter>
<parameter name="out_objtype"
transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1346">Return object type</doc>
+ line="1354">Return object type</doc>
<type name="ObjectType" c:type="OstreeObjectType*"/>
</parameter>
</parameters>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1331">A new floating #GVariant containing checksum string and objtype</doc>
+ line="1339">A new floating #GVariant containing checksum string and objtype</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1328">An ASCII checksum</doc>
+ line="1336">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1329">An object type</doc>
+ line="1337">An object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
</parameters>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1263">A string containing both @checksum and a stringifed version of @objtype</doc>
+ line="1271">A string containing both @checksum and a stringifed version of @objtype</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1260">An ASCII checksum</doc>
+ line="1268">An ASCII checksum</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1261">Object type</doc>
+ line="1269">Object type</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
</parameters>
c:identifier="ostree_object_type_from_string">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1231">The reverse of ostree_object_type_to_string().</doc>
+ line="1239">The reverse of ostree_object_type_to_string().</doc>
<source-position filename="ostree-core.h" line="354"/>
<return-value transfer-ownership="none">
<type name="ObjectType" c:type="OstreeObjectType"/>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1233">A stringified version of #OstreeObjectType</doc>
+ line="1241">A stringified version of #OstreeObjectType</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
c:identifier="ostree_object_type_to_string">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1200">Serialize @objtype to a string; this is used for file extensions.</doc>
+ line="1208">Serialize @objtype to a string; this is used for file extensions.</doc>
<source-position filename="ostree-core.h" line="351"/>
<return-value transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
<parameter name="objtype" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="1202">an #OstreeObjectType</doc>
+ line="1210">an #OstreeObjectType</doc>
<type name="ObjectType" c:type="OstreeObjectType"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="155">Split a refspec like `gnome-ostree:gnome-ostree/buildmaster` or just
-`gnome-ostree/buildmaster` into two parts. In the first case, @out_remote
-will be set to `gnome-ostree`, and @out_ref to `gnome-ostree/buildmaster`.
+ line="155">Split a refspec like `gnome-ostree:gnome-ostree/buildmain` or just
+`gnome-ostree/buildmain` into two parts. In the first case, @out_remote
+will be set to `gnome-ostree`, and @out_ref to `gnome-ostree/buildmain`.
In the second case (a local ref), @out_remote will be %NULL, and @out_ref
-will be `gnome-ostree/buildmaster`. In both cases, %TRUE will be returned.</doc>
+will be `gnome-ostree/buildmain`. In both cases, %TRUE will be returned.</doc>
<source-position filename="ostree-core.h" line="345"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
<function name="repo_commit_traverse_iter_cleanup"
c:identifier="ostree_repo_commit_traverse_iter_cleanup"
moved-to="RepoCommitTraverseIter.cleanup">
- <source-position filename="ostree-repo.h" line="1237"/>
+ <source-position filename="ostree-repo.h" line="1241"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</parameter>
</parameters>
</function>
- <docsection name="soup-form">
- <doc xml:space="preserve"
- filename="ostree-soup-form.c"
- line="19">libsoup contains several help methods for processing HTML forms as
-defined by <ulink
-url="http://www.w3.org/TR/html401/interact/forms.html#h-17.13">the
-HTML 4.01 specification</ulink>.</doc>
- </docsection>
- <docsection name="soup-uri">
- <doc xml:space="preserve"
- filename="ostree-soup-uri.c"
- line="115">A #SoupURI represents a (parsed) URI.
-
-Many applications will not need to use #SoupURI directly at all; on
-the client side, soup_message_new() takes a stringified URI, and on
-the server side, the path and query components are provided for you
-in the server callback.</doc>
- </docsection>
<function name="validate_checksum_string"
c:identifier="ostree_validate_checksum_string"
throws="1">
<function name="validate_structureof_checksum_string"
c:identifier="ostree_validate_structureof_checksum_string"
throws="1">
- <source-position filename="ostree-core.h" line="510"/>
+ <source-position filename="ostree-core.h" line="519"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2055">%TRUE if @checksum is a valid ASCII SHA256 checksum</doc>
+ line="2063">%TRUE if @checksum is a valid ASCII SHA256 checksum</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2052">an ASCII string</doc>
+ line="2060">an ASCII string</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2177">Use this to validate the basic structure of @commit, independent of
+ line="2185">Use this to validate the basic structure of @commit, independent of
any other objects it references.</doc>
- <source-position filename="ostree-core.h" line="518"/>
+ <source-position filename="ostree-core.h" line="527"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2185">%TRUE if @commit is structurally valid</doc>
+ line="2193">%TRUE if @commit is structurally valid</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="commit" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2179">A commit object, %OSTREE_OBJECT_TYPE_COMMIT</doc>
+ line="2187">A commit object, %OSTREE_OBJECT_TYPE_COMMIT</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
<function name="validate_structureof_csum_v"
c:identifier="ostree_validate_structureof_csum_v"
throws="1">
- <source-position filename="ostree-core.h" line="506"/>
+ <source-position filename="ostree-core.h" line="515"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2041">%TRUE if @checksum is a valid binary SHA256 checksum</doc>
+ line="2049">%TRUE if @checksum is a valid binary SHA256 checksum</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="checksum" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2038">a #GVariant of type "ay"</doc>
+ line="2046">a #GVariant of type "ay"</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2329">Use this to validate the basic structure of @dirmeta.</doc>
- <source-position filename="ostree-core.h" line="526"/>
+ line="2337">Use this to validate the basic structure of @dirmeta.</doc>
+ <source-position filename="ostree-core.h" line="535"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2336">%TRUE if @dirmeta is structurally valid</doc>
+ line="2344">%TRUE if @dirmeta is structurally valid</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="dirmeta" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2331">A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META</doc>
+ line="2339">A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
throws="1">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2217">Use this to validate the basic structure of @dirtree, independent of
+ line="2225">Use this to validate the basic structure of @dirtree, independent of
any other objects it references.</doc>
- <source-position filename="ostree-core.h" line="522"/>
+ <source-position filename="ostree-core.h" line="531"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2225">%TRUE if @dirtree is structurally valid</doc>
+ line="2233">%TRUE if @dirtree is structurally valid</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="dirtree" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2219">A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE</doc>
+ line="2227">A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
<function name="validate_structureof_file_mode"
c:identifier="ostree_validate_structureof_file_mode"
throws="1">
- <source-position filename="ostree-core.h" line="514"/>
+ <source-position filename="ostree-core.h" line="523"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2314">%TRUE if @mode represents a valid file type and permissions</doc>
+ line="2322">%TRUE if @mode represents a valid file type and permissions</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2311">A Unix filesystem mode</doc>
+ line="2319">A Unix filesystem mode</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
<function name="validate_structureof_objtype"
c:identifier="ostree_validate_structureof_objtype"
throws="1">
- <source-position filename="ostree-core.h" line="502"/>
+ <source-position filename="ostree-core.h" line="511"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="ostree-core.c"
- line="2023">%TRUE if @objtype represents a valid object type</doc>
+ line="2031">%TRUE if @objtype represents a valid object type</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
-#![allow(
- clippy::approx_constant,
- clippy::type_complexity,
- clippy::unreadable_literal,
- clippy::upper_case_acronyms
-)]
+#![allow(clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
-use gio_sys as gio;
use glib_sys as glib;
use gobject_sys as gobject;
+use gio_sys as gio;
mod manual;
pub use manual::*;
#[allow(unused_imports)]
-use libc::{
- c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
- intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
-};
+use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
+ c_short, c_ushort, c_long, c_ulong,
+ c_void, size_t, ssize_t, intptr_t, uintptr_t, time_t, FILE};
#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};
pub const OSTREE_REPO_COMMIT_ITER_RESULT_FILE: OstreeRepoCommitIterResult = 2;
pub const OSTREE_REPO_COMMIT_ITER_RESULT_DIR: OstreeRepoCommitIterResult = 3;
+pub type OstreeRepoLockType = c_int;
+pub const OSTREE_REPO_LOCK_SHARED: OstreeRepoLockType = 0;
+pub const OSTREE_REPO_LOCK_EXCLUSIVE: OstreeRepoLockType = 1;
+
pub type OstreeRepoMode = c_int;
pub const OSTREE_REPO_MODE_BARE: OstreeRepoMode = 0;
pub const OSTREE_REPO_MODE_ARCHIVE: OstreeRepoMode = 1;
pub const OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE: OstreeStaticDeltaIndexFlags = 0;
// Constants
-pub const OSTREE_COMMIT_GVARIANT_STRING: *const c_char =
- b"(a{sv}aya(say)sstayay)\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_ARCHITECTURE: *const c_char =
- b"ostree.architecture\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_COLLECTION_BINDING: *const c_char =
- b"ostree.collection-binding\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE: *const c_char =
- b"ostree.endoflife\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE: *const c_char =
- b"ostree.endoflife-rebase\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_REF_BINDING: *const c_char =
- b"ostree.ref-binding\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_SOURCE_TITLE: *const c_char =
- b"ostree.source-title\0" as *const u8 as *const c_char;
-pub const OSTREE_COMMIT_META_KEY_VERSION: *const c_char =
- b"version\0" as *const u8 as *const c_char;
-pub const OSTREE_DIRMETA_GVARIANT_STRING: *const c_char =
- b"(uuua(ayay))\0" as *const u8 as *const c_char;
-pub const OSTREE_FILEMETA_GVARIANT_STRING: *const c_char =
- b"(uuua(ayay))\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_GVARIANT_STRING: *const c_char = b"(a{sv}aya(say)sstayay)\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_ARCHITECTURE: *const c_char = b"ostree.architecture\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_COLLECTION_BINDING: *const c_char = b"ostree.collection-binding\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE: *const c_char = b"ostree.endoflife\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE: *const c_char = b"ostree.endoflife-rebase\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_REF_BINDING: *const c_char = b"ostree.ref-binding\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_SOURCE_TITLE: *const c_char = b"ostree.source-title\0" as *const u8 as *const c_char;
+pub const OSTREE_COMMIT_META_KEY_VERSION: *const c_char = b"version\0" as *const u8 as *const c_char;
+pub const OSTREE_DIRMETA_GVARIANT_STRING: *const c_char = b"(uuua(ayay))\0" as *const u8 as *const c_char;
+pub const OSTREE_FILEMETA_GVARIANT_STRING: *const c_char = b"(uuua(ayay))\0" as *const u8 as *const c_char;
+pub const OSTREE_GPG_KEY_GVARIANT_STRING: *const c_char = b"(aa{sv}aa{sv}a{sv})\0" as *const u8 as *const c_char;
pub const OSTREE_MAX_METADATA_SIZE: c_int = 10485760;
pub const OSTREE_MAX_METADATA_WARN_SIZE: c_int = 7340032;
-pub const OSTREE_METADATA_KEY_BOOTABLE: *const c_char =
- b"ostree.bootable\0" as *const u8 as *const c_char;
-pub const OSTREE_METADATA_KEY_LINUX: *const c_char =
- b"ostree.linux\0" as *const u8 as *const c_char;
-pub const OSTREE_META_KEY_DEPLOY_COLLECTION_ID: *const c_char =
- b"ostree.deploy-collection-id\0" as *const u8 as *const c_char;
-pub const OSTREE_ORIGIN_TRANSIENT_GROUP: *const c_char =
- b"libostree-transient\0" as *const u8 as *const c_char;
-pub const OSTREE_REPO_METADATA_REF: *const c_char =
- b"ostree-metadata\0" as *const u8 as *const c_char;
+pub const OSTREE_METADATA_KEY_BOOTABLE: *const c_char = b"ostree.bootable\0" as *const u8 as *const c_char;
+pub const OSTREE_METADATA_KEY_LINUX: *const c_char = b"ostree.linux\0" as *const u8 as *const c_char;
+pub const OSTREE_META_KEY_DEPLOY_COLLECTION_ID: *const c_char = b"ostree.deploy-collection-id\0" as *const u8 as *const c_char;
+pub const OSTREE_ORIGIN_TRANSIENT_GROUP: *const c_char = b"libostree-transient\0" as *const u8 as *const c_char;
+pub const OSTREE_REPO_METADATA_REF: *const c_char = b"ostree-metadata\0" as *const u8 as *const c_char;
pub const OSTREE_SHA256_DIGEST_LEN: c_int = 32;
pub const OSTREE_SHA256_STRING_LEN: c_int = 64;
pub const OSTREE_SIGN_NAME_ED25519: *const c_char = b"ed25519\0" as *const u8 as *const c_char;
-pub const OSTREE_SUMMARY_GVARIANT_STRING: *const c_char =
- b"(a(s(taya{sv}))a{sv})\0" as *const u8 as *const c_char;
-pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: *const c_char =
- b"a{sv}\0" as *const u8 as *const c_char;
+pub const OSTREE_SUMMARY_GVARIANT_STRING: *const c_char = b"(a(s(taya{sv}))a{sv})\0" as *const u8 as *const c_char;
+pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: *const c_char = b"a{sv}\0" as *const u8 as *const c_char;
pub const OSTREE_TIMESTAMP: c_int = 0;
-pub const OSTREE_TREE_GVARIANT_STRING: *const c_char =
- b"(a(say)a(sayay))\0" as *const u8 as *const c_char;
+pub const OSTREE_TREE_GVARIANT_STRING: *const c_char = b"(a(say)a(sayay))\0" as *const u8 as *const c_char;
// Flags
pub type OstreeChecksumFlags = c_uint;
pub const OSTREE_CHECKSUM_FLAGS_NONE: OstreeChecksumFlags = 0;
pub const OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS: OstreeChecksumFlags = 1;
+pub const OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS: OstreeChecksumFlags = 2;
pub type OstreeDiffFlags = c_uint;
pub const OSTREE_DIFF_FLAGS_NONE: OstreeDiffFlags = 0;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE: OstreeRepoCommitModifierFlags = 0;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS: OstreeRepoCommitModifierFlags = 1;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES: OstreeRepoCommitModifierFlags = 2;
-pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS: OstreeRepoCommitModifierFlags =
- 4;
+pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS: OstreeRepoCommitModifierFlags = 4;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED: OstreeRepoCommitModifierFlags = 8;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME: OstreeRepoCommitModifierFlags = 16;
pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: OstreeRepoCommitModifierFlags = 32;
pub const OSTREE_REPO_RESOLVE_REV_EXT_NONE: OstreeRepoResolveRevExtFlags = 0;
pub const OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY: OstreeRepoResolveRevExtFlags = 1;
+pub type OstreeRepoVerifyFlags = c_uint;
+pub const OSTREE_REPO_VERIFY_FLAGS_NONE: OstreeRepoVerifyFlags = 0;
+pub const OSTREE_REPO_VERIFY_FLAGS_NO_GPG: OstreeRepoVerifyFlags = 1;
+pub const OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI: OstreeRepoVerifyFlags = 2;
+
pub type OstreeSePolicyRestoreconFlags = c_uint;
pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE: OstreeSePolicyRestoreconFlags = 0;
pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL: OstreeSePolicyRestoreconFlags = 1;
pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING: OstreeSePolicyRestoreconFlags = 2;
pub type OstreeSysrootSimpleWriteDeploymentFlags = c_uint;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE:
- OstreeSysrootSimpleWriteDeploymentFlags = 0;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN:
- OstreeSysrootSimpleWriteDeploymentFlags = 1;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT:
- OstreeSysrootSimpleWriteDeploymentFlags = 2;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN:
- OstreeSysrootSimpleWriteDeploymentFlags = 4;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING:
- OstreeSysrootSimpleWriteDeploymentFlags = 8;
-pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK:
- OstreeSysrootSimpleWriteDeploymentFlags = 16;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE: OstreeSysrootSimpleWriteDeploymentFlags = 0;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN: OstreeSysrootSimpleWriteDeploymentFlags = 1;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT: OstreeSysrootSimpleWriteDeploymentFlags = 2;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN: OstreeSysrootSimpleWriteDeploymentFlags = 4;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING: OstreeSysrootSimpleWriteDeploymentFlags = 8;
+pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK: OstreeSysrootSimpleWriteDeploymentFlags = 16;
pub type OstreeSysrootUpgraderFlags = c_uint;
pub const OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED: OstreeSysrootUpgraderFlags = 2;
+pub const OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE: OstreeSysrootUpgraderFlags = 4;
pub type OstreeSysrootUpgraderPullFlags = c_uint;
pub const OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE: OstreeSysrootUpgraderPullFlags = 0;
pub const OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC: OstreeSysrootUpgraderPullFlags = 2;
// Callbacks
-pub type OstreeRepoCheckoutFilter = Option<
- unsafe extern "C" fn(
- *mut OstreeRepo,
- *const c_char,
- *mut stat,
- gpointer,
- ) -> OstreeRepoCheckoutFilterResult,
->;
-pub type OstreeRepoCommitFilter = Option<
- unsafe extern "C" fn(
- *mut OstreeRepo,
- *const c_char,
- *mut gio::GFileInfo,
- gpointer,
- ) -> OstreeRepoCommitFilterResult,
->;
-pub type OstreeRepoCommitModifierXattrCallback = Option<
- unsafe extern "C" fn(
- *mut OstreeRepo,
- *const c_char,
- *mut gio::GFileInfo,
- gpointer,
- ) -> *mut glib::GVariant,
->;
-pub type OstreeRepoImportArchiveTranslatePathname = Option<
- unsafe extern "C" fn(*mut OstreeRepo, *const stat, *const c_char, gpointer) -> *mut c_char,
->;
+pub type OstreeRepoCheckoutFilter = Option<unsafe extern "C" fn(*mut OstreeRepo, *const c_char, *mut stat, gpointer) -> OstreeRepoCheckoutFilterResult>;
+pub type OstreeRepoCommitFilter = Option<unsafe extern "C" fn(*mut OstreeRepo, *const c_char, *mut gio::GFileInfo, gpointer) -> OstreeRepoCommitFilterResult>;
+pub type OstreeRepoCommitModifierXattrCallback = Option<unsafe extern "C" fn(*mut OstreeRepo, *const c_char, *mut gio::GFileInfo, gpointer) -> *mut glib::GVariant>;
+pub type OstreeRepoImportArchiveTranslatePathname = Option<unsafe extern "C" fn(*mut OstreeRepo, *const stat, *const c_char, gpointer) -> *mut c_char>;
// Records
#[repr(C)]
impl ::std::fmt::Debug for OstreeAsyncProgressClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeAsyncProgressClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .field("changed", &self.changed)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .field("changed", &self.changed)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeCollectionRef {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeCollectionRef @ {:p}", self))
- .field("collection_id", &self.collection_id)
- .field("ref_name", &self.ref_name)
- .finish()
+ .field("collection_id", &self.collection_id)
+ .field("ref_name", &self.ref_name)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeCommitSizesEntry {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeCommitSizesEntry @ {:p}", self))
- .field("checksum", &self.checksum)
- .field("objtype", &self.objtype)
- .field("unpacked", &self.unpacked)
- .field("archived", &self.archived)
- .finish()
+ .field("checksum", &self.checksum)
+ .field("objtype", &self.objtype)
+ .field("unpacked", &self.unpacked)
+ .field("archived", &self.archived)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeContentWriterClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeContentWriterClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeDiffDirsOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeDiffDirsOptions @ {:p}", self))
- .field("owner_uid", &self.owner_uid)
- .field("owner_gid", &self.owner_gid)
- .field("devino_to_csum_cache", &self.devino_to_csum_cache)
- .field("unused_bools", &self.unused_bools)
- .field("unused_ints", &self.unused_ints)
- .field("unused_ptrs", &self.unused_ptrs)
- .finish()
+ .field("owner_uid", &self.owner_uid)
+ .field("owner_gid", &self.owner_gid)
+ .field("devino_to_csum_cache", &self.devino_to_csum_cache)
+ .field("unused_bools", &self.unused_bools)
+ .field("unused_ints", &self.unused_ints)
+ .field("unused_ptrs", &self.unused_ptrs)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeDiffItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeDiffItem @ {:p}", self))
- .field("refcount", &self.refcount)
- .field("src", &self.src)
- .field("target", &self.target)
- .field("src_info", &self.src_info)
- .field("target_info", &self.target_info)
- .field("src_checksum", &self.src_checksum)
- .field("target_checksum", &self.target_checksum)
- .finish()
+ .field("refcount", &self.refcount)
+ .field("src", &self.src)
+ .field("target", &self.target)
+ .field("src_info", &self.src_info)
+ .field("target_info", &self.target_info)
+ .field("src_checksum", &self.src_checksum)
+ .field("target_checksum", &self.target_checksum)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeMutableTreeClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeMutableTreeClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeMutableTreeIter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeMutableTreeIter @ {:p}", self))
- .field("in_files", &self.in_files)
- .field("iter", &self.iter)
- .finish()
+ .field("in_files", &self.in_files)
+ .field("iter", &self.iter)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRemote {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRemote @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoCheckoutAtOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoCheckoutAtOptions @ {:p}", self))
- .field("mode", &self.mode)
- .field("overwrite_mode", &self.overwrite_mode)
- .field("enable_uncompressed_cache", &self.enable_uncompressed_cache)
- .field("enable_fsync", &self.enable_fsync)
- .field("process_whiteouts", &self.process_whiteouts)
- .field("no_copy_fallback", &self.no_copy_fallback)
- .field("force_copy", &self.force_copy)
- .field("bareuseronly_dirs", &self.bareuseronly_dirs)
- .field("force_copy_zerosized", &self.force_copy_zerosized)
- .field("unused_bools", &self.unused_bools)
- .field("subpath", &self.subpath)
- .field("devino_to_csum_cache", &self.devino_to_csum_cache)
- .field("unused_ints", &self.unused_ints)
- .field("unused_ptrs", &self.unused_ptrs)
- .field("filter", &self.filter)
- .field("filter_user_data", &self.filter_user_data)
- .field("sepolicy", &self.sepolicy)
- .field("sepolicy_prefix", &self.sepolicy_prefix)
- .finish()
+ .field("mode", &self.mode)
+ .field("overwrite_mode", &self.overwrite_mode)
+ .field("enable_uncompressed_cache", &self.enable_uncompressed_cache)
+ .field("enable_fsync", &self.enable_fsync)
+ .field("process_whiteouts", &self.process_whiteouts)
+ .field("no_copy_fallback", &self.no_copy_fallback)
+ .field("force_copy", &self.force_copy)
+ .field("bareuseronly_dirs", &self.bareuseronly_dirs)
+ .field("force_copy_zerosized", &self.force_copy_zerosized)
+ .field("unused_bools", &self.unused_bools)
+ .field("subpath", &self.subpath)
+ .field("devino_to_csum_cache", &self.devino_to_csum_cache)
+ .field("unused_ints", &self.unused_ints)
+ .field("unused_ptrs", &self.unused_ptrs)
+ .field("filter", &self.filter)
+ .field("filter_user_data", &self.filter_user_data)
+ .field("sepolicy", &self.sepolicy)
+ .field("sepolicy_prefix", &self.sepolicy_prefix)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoCheckoutOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoCheckoutOptions @ {:p}", self))
- .field("mode", &self.mode)
- .field("overwrite_mode", &self.overwrite_mode)
- .field("enable_uncompressed_cache", &self.enable_uncompressed_cache)
- .finish()
+ .field("mode", &self.mode)
+ .field("overwrite_mode", &self.overwrite_mode)
+ .field("enable_uncompressed_cache", &self.enable_uncompressed_cache)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoCommitModifier {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoCommitModifier @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoCommitTraverseIter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoCommitTraverseIter @ {:p}", self))
- .field("initialized", &self.initialized)
- .field("dummy", &self.dummy)
- .finish()
+ .field("initialized", &self.initialized)
+ .field("dummy", &self.dummy)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoDevInoCache {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoDevInoCache @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoExportArchiveOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoExportArchiveOptions @ {:p}", self))
- .field("disable_xattrs", &self.disable_xattrs)
- .finish()
+ .field("disable_xattrs", &self.disable_xattrs)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFileClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFileClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderAvahiClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderAvahiClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderConfigClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderConfigClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
#[derive(Copy, Clone)]
pub struct OstreeRepoFinderInterface {
pub g_iface: gobject::GTypeInterface,
- pub resolve_async: Option<
- unsafe extern "C" fn(
- *mut OstreeRepoFinder,
- *const *const OstreeCollectionRef,
- *mut OstreeRepo,
- *mut gio::GCancellable,
- gio::GAsyncReadyCallback,
- gpointer,
- ),
- >,
- pub resolve_finish: Option<
- unsafe extern "C" fn(
- *mut OstreeRepoFinder,
- *mut gio::GAsyncResult,
- *mut *mut glib::GError,
- ) -> *mut glib::GPtrArray,
- >,
+ pub resolve_async: Option<unsafe extern "C" fn(*mut OstreeRepoFinder, *const *const OstreeCollectionRef, *mut OstreeRepo, *mut gio::GCancellable, gio::GAsyncReadyCallback, gpointer)>,
+ pub resolve_finish: Option<unsafe extern "C" fn(*mut OstreeRepoFinder, *mut gio::GAsyncResult, *mut *mut glib::GError) -> *mut glib::GPtrArray>,
}
impl ::std::fmt::Debug for OstreeRepoFinderInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderInterface @ {:p}", self))
- .field("g_iface", &self.g_iface)
- .field("resolve_async", &self.resolve_async)
- .field("resolve_finish", &self.resolve_finish)
- .finish()
+ .field("g_iface", &self.g_iface)
+ .field("resolve_async", &self.resolve_async)
+ .field("resolve_finish", &self.resolve_finish)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderMountClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderMountClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderOverrideClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderOverrideClass @ {:p}", self))
- .field("parent_class", &self.parent_class)
- .finish()
+ .field("parent_class", &self.parent_class)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderResult {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderResult @ {:p}", self))
- .field("remote", &self.remote)
- .field("finder", &self.finder)
- .field("priority", &self.priority)
- .field("ref_to_checksum", &self.ref_to_checksum)
- .field("summary_last_modified", &self.summary_last_modified)
- .field("ref_to_timestamp", &self.ref_to_timestamp)
- .finish()
+ .field("remote", &self.remote)
+ .field("finder", &self.finder)
+ .field("priority", &self.priority)
+ .field("ref_to_checksum", &self.ref_to_checksum)
+ .field("summary_last_modified", &self.summary_last_modified)
+ .field("ref_to_timestamp", &self.ref_to_timestamp)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoImportArchiveOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoImportArchiveOptions @ {:p}", self))
- .field(
- "ignore_unsupported_content",
- &self.ignore_unsupported_content,
- )
- .finish()
+ .field("ignore_unsupported_content", &self.ignore_unsupported_content)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoPruneOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoPruneOptions @ {:p}", self))
- .field("flags", &self.flags)
- .field("reachable", &self.reachable)
- .field("unused_bools", &self.unused_bools)
- .field("unused_ints", &self.unused_ints)
- .field("unused_ptrs", &self.unused_ptrs)
- .finish()
+ .field("flags", &self.flags)
+ .field("reachable", &self.reachable)
+ .field("unused_bools", &self.unused_bools)
+ .field("unused_ints", &self.unused_ints)
+ .field("unused_ptrs", &self.unused_ptrs)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoTransactionStats {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoTransactionStats @ {:p}", self))
- .field("metadata_objects_total", &self.metadata_objects_total)
- .field("metadata_objects_written", &self.metadata_objects_written)
- .field("content_objects_total", &self.content_objects_total)
- .field("content_objects_written", &self.content_objects_written)
- .field("content_bytes_written", &self.content_bytes_written)
- .field("devino_cache_hits", &self.devino_cache_hits)
- .field("padding1", &self.padding1)
- .field("padding2", &self.padding2)
- .field("padding3", &self.padding3)
- .field("padding4", &self.padding4)
- .finish()
+ .field("metadata_objects_total", &self.metadata_objects_total)
+ .field("metadata_objects_written", &self.metadata_objects_written)
+ .field("content_objects_total", &self.content_objects_total)
+ .field("content_objects_written", &self.content_objects_written)
+ .field("content_bytes_written", &self.content_bytes_written)
+ .field("devino_cache_hits", &self.devino_cache_hits)
+ .field("padding1", &self.padding1)
+ .field("padding2", &self.padding2)
+ .field("padding3", &self.padding3)
+ .field("padding4", &self.padding4)
+ .finish()
}
}
pub struct OstreeSignInterface {
pub g_iface: gobject::GTypeInterface,
pub get_name: Option<unsafe extern "C" fn(*mut OstreeSign) -> *const c_char>,
- pub data: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GBytes,
- *mut *mut glib::GBytes,
- *mut gio::GCancellable,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
- pub data_verify: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GBytes,
- *mut glib::GVariant,
- *mut *mut c_char,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
+ pub data: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GBytes, *mut *mut glib::GBytes, *mut gio::GCancellable, *mut *mut glib::GError) -> gboolean>,
+ pub data_verify: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GBytes, *mut glib::GVariant, *mut *mut c_char, *mut *mut glib::GError) -> gboolean>,
pub metadata_key: Option<unsafe extern "C" fn(*mut OstreeSign) -> *const c_char>,
pub metadata_format: Option<unsafe extern "C" fn(*mut OstreeSign) -> *const c_char>,
- pub clear_keys:
- Option<unsafe extern "C" fn(*mut OstreeSign, *mut *mut glib::GError) -> gboolean>,
- pub set_sk: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GVariant,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
- pub set_pk: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GVariant,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
- pub add_pk: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GVariant,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
- pub load_pk: Option<
- unsafe extern "C" fn(
- *mut OstreeSign,
- *mut glib::GVariant,
- *mut *mut glib::GError,
- ) -> gboolean,
- >,
+ pub clear_keys: Option<unsafe extern "C" fn(*mut OstreeSign, *mut *mut glib::GError) -> gboolean>,
+ pub set_sk: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GVariant, *mut *mut glib::GError) -> gboolean>,
+ pub set_pk: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GVariant, *mut *mut glib::GError) -> gboolean>,
+ pub add_pk: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GVariant, *mut *mut glib::GError) -> gboolean>,
+ pub load_pk: Option<unsafe extern "C" fn(*mut OstreeSign, *mut glib::GVariant, *mut *mut glib::GError) -> gboolean>,
}
impl ::std::fmt::Debug for OstreeSignInterface {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSignInterface @ {:p}", self))
- .field("g_iface", &self.g_iface)
- .field("get_name", &self.get_name)
- .field("data", &self.data)
- .field("data_verify", &self.data_verify)
- .field("metadata_key", &self.metadata_key)
- .field("metadata_format", &self.metadata_format)
- .field("clear_keys", &self.clear_keys)
- .field("set_sk", &self.set_sk)
- .field("set_pk", &self.set_pk)
- .field("add_pk", &self.add_pk)
- .field("load_pk", &self.load_pk)
- .finish()
+ .field("g_iface", &self.g_iface)
+ .field("get_name", &self.get_name)
+ .field("data", &self.data)
+ .field("data_verify", &self.data_verify)
+ .field("metadata_key", &self.metadata_key)
+ .field("metadata_format", &self.metadata_format)
+ .field("clear_keys", &self.clear_keys)
+ .field("set_sk", &self.set_sk)
+ .field("set_pk", &self.set_pk)
+ .field("add_pk", &self.add_pk)
+ .field("load_pk", &self.load_pk)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeSysrootDeployTreeOpts {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSysrootDeployTreeOpts @ {:p}", self))
- .field("unused_bools", &self.unused_bools)
- .field("unused_ints", &self.unused_ints)
- .field("override_kernel_argv", &self.override_kernel_argv)
- .field("overlay_initrds", &self.overlay_initrds)
- .field("unused_ptrs", &self.unused_ptrs)
- .finish()
+ .field("unused_bools", &self.unused_bools)
+ .field("unused_ints", &self.unused_ints)
+ .field("override_kernel_argv", &self.override_kernel_argv)
+ .field("overlay_initrds", &self.overlay_initrds)
+ .field("unused_ptrs", &self.unused_ptrs)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeSysrootWriteDeploymentsOpts {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSysrootWriteDeploymentsOpts @ {:p}", self))
- .field("do_postclean", &self.do_postclean)
- .field("unused_bools", &self.unused_bools)
- .field("unused_ints", &self.unused_ints)
- .field("unused_ptrs", &self.unused_ptrs)
- .finish()
+ .field("do_postclean", &self.do_postclean)
+ .field("unused_bools", &self.unused_bools)
+ .field("unused_ints", &self.unused_ints)
+ .field("unused_ptrs", &self.unused_ptrs)
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeAsyncProgress {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeAsyncProgress @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeBootconfigParser {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeBootconfigParser @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeContentWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeContentWriter @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeDeployment {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeDeployment @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeGpgVerifyResult {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeGpgVerifyResult @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeMutableTree {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeMutableTree @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- f.debug_struct(&format!("OstreeRepo @ {:p}", self)).finish()
+ f.debug_struct(&format!("OstreeRepo @ {:p}", self))
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFile {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFile @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderAvahi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderAvahi @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderConfig {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderConfig @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderMount {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderMount @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeRepoFinderOverride {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeRepoFinderOverride @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeSePolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSePolicy @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeSysroot {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSysroot @ {:p}", self))
- .finish()
+ .finish()
}
}
impl ::std::fmt::Debug for OstreeSysrootUpgrader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("OstreeSysrootUpgrader @ {:p}", self))
- .finish()
+ .finish()
}
}
}
}
+
#[link(name = "ostree-1")]
extern "C" {
pub fn ostree_collection_ref_get_type() -> GType;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_collection_ref_new(
- collection_id: *const c_char,
- ref_name: *const c_char,
- ) -> *mut OstreeCollectionRef;
+ pub fn ostree_collection_ref_new(collection_id: *const c_char, ref_name: *const c_char) -> *mut OstreeCollectionRef;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
pub fn ostree_collection_ref_dup(ref_: *const OstreeCollectionRef) -> *mut OstreeCollectionRef;
pub fn ostree_collection_ref_free(ref_: *mut OstreeCollectionRef);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_collection_ref_dupv(
- refs: *const *const OstreeCollectionRef,
- ) -> *mut *mut OstreeCollectionRef;
+ pub fn ostree_collection_ref_dupv(refs: *const *const OstreeCollectionRef) -> *mut *mut OstreeCollectionRef;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
pub fn ostree_collection_ref_equal(ref1: gconstpointer, ref2: gconstpointer) -> gboolean;
pub fn ostree_commit_sizes_entry_get_type() -> GType;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
- pub fn ostree_commit_sizes_entry_new(
- checksum: *const c_char,
- objtype: OstreeObjectType,
- unpacked: u64,
- archived: u64,
- ) -> *mut OstreeCommitSizesEntry;
+ pub fn ostree_commit_sizes_entry_new(checksum: *const c_char, objtype: OstreeObjectType, unpacked: u64, archived: u64) -> *mut OstreeCommitSizesEntry;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
- pub fn ostree_commit_sizes_entry_copy(
- entry: *const OstreeCommitSizesEntry,
- ) -> *mut OstreeCommitSizesEntry;
+ pub fn ostree_commit_sizes_entry_copy(entry: *const OstreeCommitSizesEntry) -> *mut OstreeCommitSizesEntry;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
pub fn ostree_commit_sizes_entry_free(entry: *mut OstreeCommitSizesEntry);
pub fn ostree_kernel_args_append_argv(kargs: *mut OstreeKernelArgs, argv: *mut *mut c_char);
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_append_argv_filtered(
- kargs: *mut OstreeKernelArgs,
- argv: *mut *mut c_char,
- prefixes: *mut *mut c_char,
- );
+ pub fn ostree_kernel_args_append_argv_filtered(kargs: *mut OstreeKernelArgs, argv: *mut *mut c_char, prefixes: *mut *mut c_char);
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_append_proc_cmdline(
- kargs: *mut OstreeKernelArgs,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_kernel_args_delete(
- kargs: *mut OstreeKernelArgs,
- arg: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_kernel_args_append_proc_cmdline(kargs: *mut OstreeKernelArgs, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_kernel_args_delete(kargs: *mut OstreeKernelArgs, arg: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_delete_key_entry(
- kargs: *mut OstreeKernelArgs,
- key: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_kernel_args_delete_key_entry(kargs: *mut OstreeKernelArgs, key: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
pub fn ostree_kernel_args_free(kargs: *mut OstreeKernelArgs);
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_get_last_value(
- kargs: *mut OstreeKernelArgs,
- key: *const c_char,
- ) -> *const c_char;
+ pub fn ostree_kernel_args_get_last_value(kargs: *mut OstreeKernelArgs, key: *const c_char) -> *const c_char;
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_new_replace(
- kargs: *mut OstreeKernelArgs,
- arg: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_kernel_args_new_replace(kargs: *mut OstreeKernelArgs, arg: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2019_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
pub fn ostree_kernel_args_parse_append(kargs: *mut OstreeKernelArgs, options: *const c_char);
//=========================================================================
#[cfg(any(feature = "v2017_13", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))]
- pub fn ostree_repo_checkout_at_options_set_devino(
- opts: *mut OstreeRepoCheckoutAtOptions,
- cache: *mut OstreeRepoDevInoCache,
- );
+ pub fn ostree_repo_checkout_at_options_set_devino(opts: *mut OstreeRepoCheckoutAtOptions, cache: *mut OstreeRepoDevInoCache);
//=========================================================================
// OstreeRepoCommitModifier
//=========================================================================
pub fn ostree_repo_commit_modifier_get_type() -> GType;
- pub fn ostree_repo_commit_modifier_new(
- flags: OstreeRepoCommitModifierFlags,
- commit_filter: OstreeRepoCommitFilter,
- user_data: gpointer,
- destroy_notify: glib::GDestroyNotify,
- ) -> *mut OstreeRepoCommitModifier;
- pub fn ostree_repo_commit_modifier_ref(
- modifier: *mut OstreeRepoCommitModifier,
- ) -> *mut OstreeRepoCommitModifier;
+ pub fn ostree_repo_commit_modifier_new(flags: OstreeRepoCommitModifierFlags, commit_filter: OstreeRepoCommitFilter, user_data: gpointer, destroy_notify: glib::GDestroyNotify) -> *mut OstreeRepoCommitModifier;
+ pub fn ostree_repo_commit_modifier_ref(modifier: *mut OstreeRepoCommitModifier) -> *mut OstreeRepoCommitModifier;
#[cfg(any(feature = "v2017_13", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))]
- pub fn ostree_repo_commit_modifier_set_devino_cache(
- modifier: *mut OstreeRepoCommitModifier,
- cache: *mut OstreeRepoDevInoCache,
- );
- pub fn ostree_repo_commit_modifier_set_sepolicy(
- modifier: *mut OstreeRepoCommitModifier,
- sepolicy: *mut OstreeSePolicy,
- );
+ pub fn ostree_repo_commit_modifier_set_devino_cache(modifier: *mut OstreeRepoCommitModifier, cache: *mut OstreeRepoDevInoCache);
+ pub fn ostree_repo_commit_modifier_set_sepolicy(modifier: *mut OstreeRepoCommitModifier, sepolicy: *mut OstreeSePolicy);
#[cfg(any(feature = "v2020_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_4")))]
- pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(
- modifier: *mut OstreeRepoCommitModifier,
- repo: *mut OstreeRepo,
- rev: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_commit_modifier_set_xattr_callback(
- modifier: *mut OstreeRepoCommitModifier,
- callback: OstreeRepoCommitModifierXattrCallback,
- destroy: glib::GDestroyNotify,
- user_data: gpointer,
- );
+ pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(modifier: *mut OstreeRepoCommitModifier, repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_commit_modifier_set_xattr_callback(modifier: *mut OstreeRepoCommitModifier, callback: OstreeRepoCommitModifierXattrCallback, destroy: glib::GDestroyNotify, user_data: gpointer);
pub fn ostree_repo_commit_modifier_unref(modifier: *mut OstreeRepoCommitModifier);
//=========================================================================
// OstreeRepoCommitTraverseIter
//=========================================================================
pub fn ostree_repo_commit_traverse_iter_clear(iter: *mut OstreeRepoCommitTraverseIter);
- pub fn ostree_repo_commit_traverse_iter_get_dir(
- iter: *mut OstreeRepoCommitTraverseIter,
- out_name: *mut *mut c_char,
- out_content_checksum: *mut *mut c_char,
- out_meta_checksum: *mut *mut c_char,
- );
- pub fn ostree_repo_commit_traverse_iter_get_file(
- iter: *mut OstreeRepoCommitTraverseIter,
- out_name: *mut *mut c_char,
- out_checksum: *mut *mut c_char,
- );
- pub fn ostree_repo_commit_traverse_iter_init_commit(
- iter: *mut OstreeRepoCommitTraverseIter,
- repo: *mut OstreeRepo,
- commit: *mut glib::GVariant,
- flags: OstreeRepoCommitTraverseFlags,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_commit_traverse_iter_init_dirtree(
- iter: *mut OstreeRepoCommitTraverseIter,
- repo: *mut OstreeRepo,
- dirtree: *mut glib::GVariant,
- flags: OstreeRepoCommitTraverseFlags,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_commit_traverse_iter_next(
- iter: *mut OstreeRepoCommitTraverseIter,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> OstreeRepoCommitIterResult;
+ pub fn ostree_repo_commit_traverse_iter_get_dir(iter: *mut OstreeRepoCommitTraverseIter, out_name: *mut *mut c_char, out_content_checksum: *mut *mut c_char, out_meta_checksum: *mut *mut c_char);
+ pub fn ostree_repo_commit_traverse_iter_get_file(iter: *mut OstreeRepoCommitTraverseIter, out_name: *mut *mut c_char, out_checksum: *mut *mut c_char);
+ pub fn ostree_repo_commit_traverse_iter_init_commit(iter: *mut OstreeRepoCommitTraverseIter, repo: *mut OstreeRepo, commit: *mut glib::GVariant, flags: OstreeRepoCommitTraverseFlags, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_commit_traverse_iter_init_dirtree(iter: *mut OstreeRepoCommitTraverseIter, repo: *mut OstreeRepo, dirtree: *mut glib::GVariant, flags: OstreeRepoCommitTraverseFlags, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_commit_traverse_iter_next(iter: *mut OstreeRepoCommitTraverseIter, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> OstreeRepoCommitIterResult;
pub fn ostree_repo_commit_traverse_iter_cleanup(p: *mut c_void);
//=========================================================================
//=========================================================================
pub fn ostree_repo_devino_cache_get_type() -> GType;
pub fn ostree_repo_devino_cache_new() -> *mut OstreeRepoDevInoCache;
- pub fn ostree_repo_devino_cache_ref(
- cache: *mut OstreeRepoDevInoCache,
- ) -> *mut OstreeRepoDevInoCache;
+ pub fn ostree_repo_devino_cache_ref(cache: *mut OstreeRepoDevInoCache) -> *mut OstreeRepoDevInoCache;
pub fn ostree_repo_devino_cache_unref(cache: *mut OstreeRepoDevInoCache);
//=========================================================================
pub fn ostree_repo_finder_result_get_type() -> GType;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_result_new(
- remote: *mut OstreeRemote,
- finder: *mut OstreeRepoFinder,
- priority: c_int,
- ref_to_checksum: *mut glib::GHashTable,
- ref_to_timestamp: *mut glib::GHashTable,
- summary_last_modified: u64,
- ) -> *mut OstreeRepoFinderResult;
+ pub fn ostree_repo_finder_result_new(remote: *mut OstreeRemote, finder: *mut OstreeRepoFinder, priority: c_int, ref_to_checksum: *mut glib::GHashTable, ref_to_timestamp: *mut glib::GHashTable, summary_last_modified: u64) -> *mut OstreeRepoFinderResult;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_result_compare(
- a: *const OstreeRepoFinderResult,
- b: *const OstreeRepoFinderResult,
- ) -> c_int;
+ pub fn ostree_repo_finder_result_compare(a: *const OstreeRepoFinderResult, b: *const OstreeRepoFinderResult) -> c_int;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_result_dup(
- result: *mut OstreeRepoFinderResult,
- ) -> *mut OstreeRepoFinderResult;
+ pub fn ostree_repo_finder_result_dup(result: *mut OstreeRepoFinderResult) -> *mut OstreeRepoFinderResult;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
pub fn ostree_repo_finder_result_free(result: *mut OstreeRepoFinderResult);
//=========================================================================
pub fn ostree_async_progress_get_type() -> GType;
pub fn ostree_async_progress_new() -> *mut OstreeAsyncProgress;
- pub fn ostree_async_progress_new_and_connect(
- changed: *mut gpointer,
- user_data: gpointer,
- ) -> *mut OstreeAsyncProgress;
+ pub fn ostree_async_progress_new_and_connect(changed: *mut gpointer, user_data: gpointer) -> *mut OstreeAsyncProgress;
#[cfg(any(feature = "v2019_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_6")))]
- pub fn ostree_async_progress_copy_state(
- self_: *mut OstreeAsyncProgress,
- dest: *mut OstreeAsyncProgress,
- );
+ pub fn ostree_async_progress_copy_state(self_: *mut OstreeAsyncProgress, dest: *mut OstreeAsyncProgress);
pub fn ostree_async_progress_finish(self_: *mut OstreeAsyncProgress);
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
pub fn ostree_async_progress_get_status(self_: *mut OstreeAsyncProgress) -> *mut c_char;
- pub fn ostree_async_progress_get_uint(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- ) -> c_uint;
- pub fn ostree_async_progress_get_uint64(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- ) -> u64;
+ pub fn ostree_async_progress_get_uint(self_: *mut OstreeAsyncProgress, key: *const c_char) -> c_uint;
+ pub fn ostree_async_progress_get_uint64(self_: *mut OstreeAsyncProgress, key: *const c_char) -> u64;
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
- pub fn ostree_async_progress_get_variant(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- ) -> *mut glib::GVariant;
+ pub fn ostree_async_progress_get_variant(self_: *mut OstreeAsyncProgress, key: *const c_char) -> *mut glib::GVariant;
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
pub fn ostree_async_progress_set(self_: *mut OstreeAsyncProgress, ...);
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
pub fn ostree_async_progress_set_status(self_: *mut OstreeAsyncProgress, status: *const c_char);
- pub fn ostree_async_progress_set_uint(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- value: c_uint,
- );
- pub fn ostree_async_progress_set_uint64(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- value: u64,
- );
+ pub fn ostree_async_progress_set_uint(self_: *mut OstreeAsyncProgress, key: *const c_char, value: c_uint);
+ pub fn ostree_async_progress_set_uint64(self_: *mut OstreeAsyncProgress, key: *const c_char, value: u64);
#[cfg(any(feature = "v2017_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))]
- pub fn ostree_async_progress_set_variant(
- self_: *mut OstreeAsyncProgress,
- key: *const c_char,
- value: *mut glib::GVariant,
- );
+ pub fn ostree_async_progress_set_variant(self_: *mut OstreeAsyncProgress, key: *const c_char, value: *mut glib::GVariant);
//=========================================================================
// OstreeBootconfigParser
//=========================================================================
pub fn ostree_bootconfig_parser_get_type() -> GType;
pub fn ostree_bootconfig_parser_new() -> *mut OstreeBootconfigParser;
- pub fn ostree_bootconfig_parser_clone(
- self_: *mut OstreeBootconfigParser,
- ) -> *mut OstreeBootconfigParser;
- pub fn ostree_bootconfig_parser_get(
- self_: *mut OstreeBootconfigParser,
- key: *const c_char,
- ) -> *const c_char;
+ pub fn ostree_bootconfig_parser_clone(self_: *mut OstreeBootconfigParser) -> *mut OstreeBootconfigParser;
+ pub fn ostree_bootconfig_parser_get(self_: *mut OstreeBootconfigParser, key: *const c_char) -> *const c_char;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_bootconfig_parser_get_overlay_initrds(
- self_: *mut OstreeBootconfigParser,
- ) -> *mut *mut c_char;
- pub fn ostree_bootconfig_parser_parse(
- self_: *mut OstreeBootconfigParser,
- path: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_bootconfig_parser_parse_at(
- self_: *mut OstreeBootconfigParser,
- dfd: c_int,
- path: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_bootconfig_parser_set(
- self_: *mut OstreeBootconfigParser,
- key: *const c_char,
- value: *const c_char,
- );
+ pub fn ostree_bootconfig_parser_get_overlay_initrds(self_: *mut OstreeBootconfigParser) -> *mut *mut c_char;
+ pub fn ostree_bootconfig_parser_parse(self_: *mut OstreeBootconfigParser, path: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_bootconfig_parser_parse_at(self_: *mut OstreeBootconfigParser, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_bootconfig_parser_set(self_: *mut OstreeBootconfigParser, key: *const c_char, value: *const c_char);
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_bootconfig_parser_set_overlay_initrds(
- self_: *mut OstreeBootconfigParser,
- initrds: *mut *mut c_char,
- );
- pub fn ostree_bootconfig_parser_write(
- self_: *mut OstreeBootconfigParser,
- output: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_bootconfig_parser_write_at(
- self_: *mut OstreeBootconfigParser,
- dfd: c_int,
- path: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_bootconfig_parser_set_overlay_initrds(self_: *mut OstreeBootconfigParser, initrds: *mut *mut c_char);
+ pub fn ostree_bootconfig_parser_write(self_: *mut OstreeBootconfigParser, output: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_bootconfig_parser_write_at(self_: *mut OstreeBootconfigParser, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeChecksumInputStream
// OstreeContentWriter
//=========================================================================
pub fn ostree_content_writer_get_type() -> GType;
- pub fn ostree_content_writer_finish(
- self_: *mut OstreeContentWriter,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut c_char;
+ pub fn ostree_content_writer_finish(self_: *mut OstreeContentWriter, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char;
//=========================================================================
// OstreeDeployment
//=========================================================================
pub fn ostree_deployment_get_type() -> GType;
- pub fn ostree_deployment_new(
- index: c_int,
- osname: *const c_char,
- csum: *const c_char,
- deployserial: c_int,
- bootcsum: *const c_char,
- bootserial: c_int,
- ) -> *mut OstreeDeployment;
+ pub fn ostree_deployment_new(index: c_int, osname: *const c_char, csum: *const c_char, deployserial: c_int, bootcsum: *const c_char, bootserial: c_int) -> *mut OstreeDeployment;
#[cfg(any(feature = "v2018_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))]
pub fn ostree_deployment_origin_remove_transient_state(origin: *mut glib::GKeyFile);
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_deployment_unlocked_state_to_string(
- state: OstreeDeploymentUnlockedState,
- ) -> *const c_char;
+ pub fn ostree_deployment_unlocked_state_to_string(state: OstreeDeploymentUnlockedState) -> *const c_char;
pub fn ostree_deployment_clone(self_: *mut OstreeDeployment) -> *mut OstreeDeployment;
pub fn ostree_deployment_equal(ap: gconstpointer, bp: gconstpointer) -> gboolean;
- pub fn ostree_deployment_get_bootconfig(
- self_: *mut OstreeDeployment,
- ) -> *mut OstreeBootconfigParser;
+ pub fn ostree_deployment_get_bootconfig(self_: *mut OstreeDeployment) -> *mut OstreeBootconfigParser;
pub fn ostree_deployment_get_bootcsum(self_: *mut OstreeDeployment) -> *const c_char;
pub fn ostree_deployment_get_bootserial(self_: *mut OstreeDeployment) -> c_int;
pub fn ostree_deployment_get_csum(self_: *mut OstreeDeployment) -> *const c_char;
pub fn ostree_deployment_get_osname(self_: *mut OstreeDeployment) -> *const c_char;
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_deployment_get_unlocked(
- self_: *mut OstreeDeployment,
- ) -> OstreeDeploymentUnlockedState;
+ pub fn ostree_deployment_get_unlocked(self_: *mut OstreeDeployment) -> OstreeDeploymentUnlockedState;
pub fn ostree_deployment_hash(v: gconstpointer) -> c_uint;
#[cfg(any(feature = "v2018_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))]
#[cfg(any(feature = "v2018_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))]
pub fn ostree_deployment_is_staged(self_: *mut OstreeDeployment) -> gboolean;
- pub fn ostree_deployment_set_bootconfig(
- self_: *mut OstreeDeployment,
- bootconfig: *mut OstreeBootconfigParser,
- );
+ pub fn ostree_deployment_set_bootconfig(self_: *mut OstreeDeployment, bootconfig: *mut OstreeBootconfigParser);
pub fn ostree_deployment_set_bootserial(self_: *mut OstreeDeployment, index: c_int);
pub fn ostree_deployment_set_index(self_: *mut OstreeDeployment, index: c_int);
pub fn ostree_deployment_set_origin(self_: *mut OstreeDeployment, origin: *mut glib::GKeyFile);
// OstreeGpgVerifyResult
//=========================================================================
pub fn ostree_gpg_verify_result_get_type() -> GType;
- pub fn ostree_gpg_verify_result_describe_variant(
- variant: *mut glib::GVariant,
- output_buffer: *mut glib::GString,
- line_prefix: *const c_char,
- flags: OstreeGpgSignatureFormatFlags,
- );
+ pub fn ostree_gpg_verify_result_describe_variant(variant: *mut glib::GVariant, output_buffer: *mut glib::GString, line_prefix: *const c_char, flags: OstreeGpgSignatureFormatFlags);
pub fn ostree_gpg_verify_result_count_all(result: *mut OstreeGpgVerifyResult) -> c_uint;
pub fn ostree_gpg_verify_result_count_valid(result: *mut OstreeGpgVerifyResult) -> c_uint;
- pub fn ostree_gpg_verify_result_describe(
- result: *mut OstreeGpgVerifyResult,
- signature_index: c_uint,
- output_buffer: *mut glib::GString,
- line_prefix: *const c_char,
- flags: OstreeGpgSignatureFormatFlags,
- );
- pub fn ostree_gpg_verify_result_get(
- result: *mut OstreeGpgVerifyResult,
- signature_index: c_uint,
- attrs: *mut OstreeGpgSignatureAttr,
- n_attrs: c_uint,
- ) -> *mut glib::GVariant;
- pub fn ostree_gpg_verify_result_get_all(
- result: *mut OstreeGpgVerifyResult,
- signature_index: c_uint,
- ) -> *mut glib::GVariant;
- pub fn ostree_gpg_verify_result_lookup(
- result: *mut OstreeGpgVerifyResult,
- key_id: *const c_char,
- out_signature_index: *mut c_uint,
- ) -> gboolean;
+ pub fn ostree_gpg_verify_result_describe(result: *mut OstreeGpgVerifyResult, signature_index: c_uint, output_buffer: *mut glib::GString, line_prefix: *const c_char, flags: OstreeGpgSignatureFormatFlags);
+ pub fn ostree_gpg_verify_result_get(result: *mut OstreeGpgVerifyResult, signature_index: c_uint, attrs: *mut OstreeGpgSignatureAttr, n_attrs: c_uint) -> *mut glib::GVariant;
+ pub fn ostree_gpg_verify_result_get_all(result: *mut OstreeGpgVerifyResult, signature_index: c_uint) -> *mut glib::GVariant;
+ pub fn ostree_gpg_verify_result_lookup(result: *mut OstreeGpgVerifyResult, key_id: *const c_char, out_signature_index: *mut c_uint) -> gboolean;
#[cfg(any(feature = "v2016_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))]
- pub fn ostree_gpg_verify_result_require_valid_signature(
- result: *mut OstreeGpgVerifyResult,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_gpg_verify_result_require_valid_signature(result: *mut OstreeGpgVerifyResult, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeMutableTree
pub fn ostree_mutable_tree_new() -> *mut OstreeMutableTree;
#[cfg(any(feature = "v2018_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
- pub fn ostree_mutable_tree_new_from_checksum(
- repo: *mut OstreeRepo,
- contents_checksum: *const c_char,
- metadata_checksum: *const c_char,
- ) -> *mut OstreeMutableTree;
+ pub fn ostree_mutable_tree_new_from_checksum(repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> *mut OstreeMutableTree;
#[cfg(any(feature = "v2018_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
- pub fn ostree_mutable_tree_check_error(
- self_: *mut OstreeMutableTree,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_mutable_tree_ensure_dir(
- self_: *mut OstreeMutableTree,
- name: *const c_char,
- out_subdir: *mut *mut OstreeMutableTree,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_mutable_tree_ensure_parent_dirs(
- self_: *mut OstreeMutableTree,
- split_path: *mut glib::GPtrArray,
- metadata_checksum: *const c_char,
- out_parent: *mut *mut OstreeMutableTree,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_mutable_tree_check_error(self_: *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_mutable_tree_ensure_dir(self_: *mut OstreeMutableTree, name: *const c_char, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_mutable_tree_ensure_parent_dirs(self_: *mut OstreeMutableTree, split_path: *mut glib::GPtrArray, metadata_checksum: *const c_char, out_parent: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
- pub fn ostree_mutable_tree_fill_empty_from_dirtree(
- self_: *mut OstreeMutableTree,
- repo: *mut OstreeRepo,
- contents_checksum: *const c_char,
- metadata_checksum: *const c_char,
- ) -> gboolean;
- pub fn ostree_mutable_tree_get_contents_checksum(
- self_: *mut OstreeMutableTree,
- ) -> *const c_char;
+ pub fn ostree_mutable_tree_fill_empty_from_dirtree(self_: *mut OstreeMutableTree, repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> gboolean;
+ pub fn ostree_mutable_tree_get_contents_checksum(self_: *mut OstreeMutableTree) -> *const c_char;
pub fn ostree_mutable_tree_get_files(self_: *mut OstreeMutableTree) -> *mut glib::GHashTable;
- pub fn ostree_mutable_tree_get_metadata_checksum(
- self_: *mut OstreeMutableTree,
- ) -> *const c_char;
+ pub fn ostree_mutable_tree_get_metadata_checksum(self_: *mut OstreeMutableTree) -> *const c_char;
pub fn ostree_mutable_tree_get_subdirs(self_: *mut OstreeMutableTree) -> *mut glib::GHashTable;
- pub fn ostree_mutable_tree_lookup(
- self_: *mut OstreeMutableTree,
- name: *const c_char,
- out_file_checksum: *mut *mut c_char,
- out_subdir: *mut *mut OstreeMutableTree,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_mutable_tree_lookup(self_: *mut OstreeMutableTree, name: *const c_char, out_file_checksum: *mut *mut c_char, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_9", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_9")))]
- pub fn ostree_mutable_tree_remove(
- self_: *mut OstreeMutableTree,
- name: *const c_char,
- allow_noent: gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_mutable_tree_replace_file(
- self_: *mut OstreeMutableTree,
- name: *const c_char,
- checksum: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_mutable_tree_set_contents_checksum(
- self_: *mut OstreeMutableTree,
- checksum: *const c_char,
- );
- pub fn ostree_mutable_tree_set_metadata_checksum(
- self_: *mut OstreeMutableTree,
- checksum: *const c_char,
- );
- pub fn ostree_mutable_tree_walk(
- self_: *mut OstreeMutableTree,
- split_path: *mut glib::GPtrArray,
- start: c_uint,
- out_subdir: *mut *mut OstreeMutableTree,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_mutable_tree_remove(self_: *mut OstreeMutableTree, name: *const c_char, allow_noent: gboolean, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_mutable_tree_replace_file(self_: *mut OstreeMutableTree, name: *const c_char, checksum: *const c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_mutable_tree_set_contents_checksum(self_: *mut OstreeMutableTree, checksum: *const c_char);
+ pub fn ostree_mutable_tree_set_metadata_checksum(self_: *mut OstreeMutableTree, checksum: *const c_char);
+ pub fn ostree_mutable_tree_walk(self_: *mut OstreeMutableTree, split_path: *mut glib::GPtrArray, start: c_uint, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeRepo
pub fn ostree_repo_get_type() -> GType;
pub fn ostree_repo_new(path: *mut gio::GFile) -> *mut OstreeRepo;
pub fn ostree_repo_new_default() -> *mut OstreeRepo;
- pub fn ostree_repo_new_for_sysroot_path(
- repo_path: *mut gio::GFile,
- sysroot_path: *mut gio::GFile,
- ) -> *mut OstreeRepo;
+ pub fn ostree_repo_new_for_sysroot_path(repo_path: *mut gio::GFile, sysroot_path: *mut gio::GFile) -> *mut OstreeRepo;
#[cfg(any(feature = "v2017_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
- pub fn ostree_repo_create_at(
- dfd: c_int,
- path: *const c_char,
- mode: OstreeRepoMode,
- options: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeRepo;
- pub fn ostree_repo_mode_from_string(
- mode: *const c_char,
- out_mode: *mut OstreeRepoMode,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_create_at(dfd: c_int, path: *const c_char, mode: OstreeRepoMode, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRepo;
+ pub fn ostree_repo_mode_from_string(mode: *const c_char, out_mode: *mut OstreeRepoMode, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
- pub fn ostree_repo_open_at(
- dfd: c_int,
- path: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeRepo;
- pub fn ostree_repo_pull_default_console_progress_changed(
- progress: *mut OstreeAsyncProgress,
- user_data: gpointer,
- );
+ pub fn ostree_repo_open_at(dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRepo;
+ pub fn ostree_repo_pull_default_console_progress_changed(progress: *mut OstreeAsyncProgress, user_data: gpointer);
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
pub fn ostree_repo_traverse_new_parents() -> *mut glib::GHashTable;
pub fn ostree_repo_traverse_new_reachable() -> *mut glib::GHashTable;
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
- pub fn ostree_repo_traverse_parents_get_commits(
- parents: *mut glib::GHashTable,
- object: *mut glib::GVariant,
- ) -> *mut *mut c_char;
- pub fn ostree_repo_abort_transaction(
- self_: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_add_gpg_signature_summary(
- self_: *mut OstreeRepo,
- key_id: *mut *const c_char,
- homedir: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_append_gpg_signature(
- self_: *mut OstreeRepo,
- commit_checksum: *const c_char,
- signature_bytes: *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_traverse_parents_get_commits(parents: *mut glib::GHashTable, object: *mut glib::GVariant) -> *mut *mut c_char;
+ pub fn ostree_repo_abort_transaction(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_add_gpg_signature_summary(self_: *mut OstreeRepo, key_id: *mut *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_append_gpg_signature(self_: *mut OstreeRepo, commit_checksum: *const c_char, signature_bytes: *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_8", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_8")))]
- pub fn ostree_repo_checkout_at(
- self_: *mut OstreeRepo,
- options: *mut OstreeRepoCheckoutAtOptions,
- destination_dfd: c_int,
- destination_path: *const c_char,
- commit: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_checkout_gc(
- self_: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_checkout_tree(
- self_: *mut OstreeRepo,
- mode: OstreeRepoCheckoutMode,
- overwrite_mode: OstreeRepoCheckoutOverwriteMode,
- destination: *mut gio::GFile,
- source: *mut OstreeRepoFile,
- source_info: *mut gio::GFileInfo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_checkout_tree_at(
- self_: *mut OstreeRepo,
- options: *mut OstreeRepoCheckoutOptions,
- destination_dfd: c_int,
- destination_path: *const c_char,
- commit: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_commit_transaction(
- self_: *mut OstreeRepo,
- out_stats: *mut OstreeRepoTransactionStats,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_checkout_at(self_: *mut OstreeRepo, options: *mut OstreeRepoCheckoutAtOptions, destination_dfd: c_int, destination_path: *const c_char, commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_checkout_gc(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_checkout_tree(self_: *mut OstreeRepo, mode: OstreeRepoCheckoutMode, overwrite_mode: OstreeRepoCheckoutOverwriteMode, destination: *mut gio::GFile, source: *mut OstreeRepoFile, source_info: *mut gio::GFileInfo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_checkout_tree_at(self_: *mut OstreeRepo, options: *mut OstreeRepoCheckoutOptions, destination_dfd: c_int, destination_path: *const c_char, commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_commit_transaction(self_: *mut OstreeRepo, out_stats: *mut OstreeRepoTransactionStats, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_copy_config(self_: *mut OstreeRepo) -> *mut glib::GKeyFile;
- pub fn ostree_repo_create(
- self_: *mut OstreeRepo,
- mode: OstreeRepoMode,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_delete_object(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- sha256: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_create(self_: *mut OstreeRepo, mode: OstreeRepoMode, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_delete_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_12")))]
pub fn ostree_repo_equal(a: *mut OstreeRepo, b: *mut OstreeRepo) -> gboolean;
- pub fn ostree_repo_export_tree_to_archive(
- self_: *mut OstreeRepo,
- opts: *mut OstreeRepoExportArchiveOptions,
- root: *mut OstreeRepoFile,
- archive: *mut c_void,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_export_tree_to_archive(self_: *mut OstreeRepo, opts: *mut OstreeRepoExportArchiveOptions, root: *mut OstreeRepoFile, archive: *mut c_void, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_find_remotes_async(
- self_: *mut OstreeRepo,
- refs: *const *const OstreeCollectionRef,
- options: *mut glib::GVariant,
- finders: *mut *mut OstreeRepoFinder,
- progress: *mut OstreeAsyncProgress,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
+ pub fn ostree_repo_find_remotes_async(self_: *mut OstreeRepo, refs: *const *const OstreeCollectionRef, options: *mut glib::GVariant, finders: *mut *mut OstreeRepoFinder, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_find_remotes_finish(
- self_: *mut OstreeRepo,
- result: *mut gio::GAsyncResult,
- error: *mut *mut glib::GError,
- ) -> *mut *mut OstreeRepoFinderResult;
+ pub fn ostree_repo_find_remotes_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut *mut OstreeRepoFinderResult;
#[cfg(any(feature = "v2017_15", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))]
- pub fn ostree_repo_fsck_object(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- sha256: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_fsck_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2019_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_2")))]
pub fn ostree_repo_get_bootloader(self_: *mut OstreeRepo) -> *const c_char;
pub fn ostree_repo_get_disable_fsync(self_: *mut OstreeRepo) -> gboolean;
#[cfg(any(feature = "v2018_9", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_9")))]
- pub fn ostree_repo_get_min_free_space_bytes(
- self_: *mut OstreeRepo,
- out_reserved_bytes: *mut u64,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_get_min_free_space_bytes(self_: *mut OstreeRepo, out_reserved_bytes: *mut u64, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_get_mode(self_: *mut OstreeRepo) -> OstreeRepoMode;
pub fn ostree_repo_get_parent(self_: *mut OstreeRepo) -> *mut OstreeRepo;
pub fn ostree_repo_get_path(self_: *mut OstreeRepo) -> *mut gio::GFile;
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
- pub fn ostree_repo_get_remote_boolean_option(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- option_name: *const c_char,
- default_value: gboolean,
- out_value: *mut gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_get_remote_boolean_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, default_value: gboolean, out_value: *mut gboolean, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
- pub fn ostree_repo_get_remote_list_option(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- option_name: *const c_char,
- out_value: *mut *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_get_remote_list_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, out_value: *mut *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
- pub fn ostree_repo_get_remote_option(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- option_name: *const c_char,
- default_value: *const c_char,
- out_value: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_get_remote_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, default_value: *const c_char, out_value: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_8", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))]
- pub fn ostree_repo_gpg_sign_data(
- self_: *mut OstreeRepo,
- data: *mut glib::GBytes,
- old_signatures: *mut glib::GBytes,
- key_id: *mut *const c_char,
- homedir: *const c_char,
- out_signatures: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_gpg_sign_data(self_: *mut OstreeRepo, data: *mut glib::GBytes, old_signatures: *mut glib::GBytes, key_id: *mut *const c_char, homedir: *const c_char, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))]
- pub fn ostree_repo_gpg_verify_data(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- data: *mut glib::GBytes,
- signatures: *mut glib::GBytes,
- keyringdir: *mut gio::GFile,
- extra_keyring: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeGpgVerifyResult;
- pub fn ostree_repo_has_object(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- out_have_object: *mut gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_gpg_verify_data(self_: *mut OstreeRepo, remote_name: *const c_char, data: *mut glib::GBytes, signatures: *mut glib::GBytes, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult;
+ pub fn ostree_repo_has_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, out_have_object: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_12")))]
pub fn ostree_repo_hash(self_: *mut OstreeRepo) -> c_uint;
- pub fn ostree_repo_import_archive_to_mtree(
- self_: *mut OstreeRepo,
- opts: *mut OstreeRepoImportArchiveOptions,
- archive: *mut c_void,
- mtree: *mut OstreeMutableTree,
- modifier: *mut OstreeRepoCommitModifier,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_import_object_from(
- self_: *mut OstreeRepo,
- source: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_import_archive_to_mtree(self_: *mut OstreeRepo, opts: *mut OstreeRepoImportArchiveOptions, archive: *mut c_void, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_import_object_from(self_: *mut OstreeRepo, source: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
- pub fn ostree_repo_import_object_from_with_trust(
- self_: *mut OstreeRepo,
- source: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- trusted: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_import_object_from_with_trust(self_: *mut OstreeRepo, source: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, trusted: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_is_system(repo: *mut OstreeRepo) -> gboolean;
- pub fn ostree_repo_is_writable(
- self_: *mut OstreeRepo,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_is_writable(self_: *mut OstreeRepo, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_list_collection_refs(
- self_: *mut OstreeRepo,
- match_collection_id: *const c_char,
- out_all_refs: *mut *mut glib::GHashTable,
- flags: OstreeRepoListRefsExtFlags,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_list_commit_objects_starting_with(
- self_: *mut OstreeRepo,
- start: *const c_char,
- out_commits: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_list_objects(
- self_: *mut OstreeRepo,
- flags: OstreeRepoListObjectsFlags,
- out_objects: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_list_refs(
- self_: *mut OstreeRepo,
- refspec_prefix: *const c_char,
- out_all_refs: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_list_collection_refs(self_: *mut OstreeRepo, match_collection_id: *const c_char, out_all_refs: *mut *mut glib::GHashTable, flags: OstreeRepoListRefsExtFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_list_commit_objects_starting_with(self_: *mut OstreeRepo, start: *const c_char, out_commits: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_list_objects(self_: *mut OstreeRepo, flags: OstreeRepoListObjectsFlags, out_objects: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_list_refs(self_: *mut OstreeRepo, refspec_prefix: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_repo_list_refs_ext(
- self_: *mut OstreeRepo,
- refspec_prefix: *const c_char,
- out_all_refs: *mut *mut glib::GHashTable,
- flags: OstreeRepoListRefsExtFlags,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_list_refs_ext(self_: *mut OstreeRepo, refspec_prefix: *const c_char, out_all_refs: *mut *mut glib::GHashTable, flags: OstreeRepoListRefsExtFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_8", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))]
- pub fn ostree_repo_list_static_delta_indexes(
- self_: *mut OstreeRepo,
- out_indexes: *mut *mut glib::GPtrArray,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_list_static_delta_names(
- self_: *mut OstreeRepo,
- out_deltas: *mut *mut glib::GPtrArray,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_list_static_delta_indexes(self_: *mut OstreeRepo, out_indexes: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_list_static_delta_names(self_: *mut OstreeRepo, out_deltas: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2015_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2015_7")))]
- pub fn ostree_repo_load_commit(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- out_commit: *mut *mut glib::GVariant,
- out_state: *mut OstreeRepoCommitState,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_load_file(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- out_input: *mut *mut gio::GInputStream,
- out_file_info: *mut *mut gio::GFileInfo,
- out_xattrs: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_load_object_stream(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- out_input: *mut *mut gio::GInputStream,
- out_size: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_load_variant(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- sha256: *const c_char,
- out_variant: *mut *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_load_variant_if_exists(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- sha256: *const c_char,
- out_variant: *mut *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_load_commit(self_: *mut OstreeRepo, checksum: *const c_char, out_commit: *mut *mut glib::GVariant, out_state: *mut OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_load_file(self_: *mut OstreeRepo, checksum: *const c_char, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_load_object_stream(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, out_input: *mut *mut gio::GInputStream, out_size: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_load_variant(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_load_variant_if_exists(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ #[cfg(any(feature = "v2021_3", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))]
+ pub fn ostree_repo_lock_pop(self_: *mut OstreeRepo, lock_type: OstreeRepoLockType, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ #[cfg(any(feature = "v2021_3", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))]
+ pub fn ostree_repo_lock_push(self_: *mut OstreeRepo, lock_type: OstreeRepoLockType, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_15", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))]
- pub fn ostree_repo_mark_commit_partial(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- is_partial: gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_mark_commit_partial(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2019_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_4")))]
- pub fn ostree_repo_mark_commit_partial_reason(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- is_partial: gboolean,
- in_state: OstreeRepoCommitState,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_open(
- self_: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_prepare_transaction(
- self_: *mut OstreeRepo,
- out_transaction_resume: *mut gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_prune(
- self_: *mut OstreeRepo,
- flags: OstreeRepoPruneFlags,
- depth: c_int,
- out_objects_total: *mut c_int,
- out_objects_pruned: *mut c_int,
- out_pruned_object_size_total: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_mark_commit_partial_reason(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, in_state: OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_open(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_prepare_transaction(self_: *mut OstreeRepo, out_transaction_resume: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_prune(self_: *mut OstreeRepo, flags: OstreeRepoPruneFlags, depth: c_int, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_1")))]
- pub fn ostree_repo_prune_from_reachable(
- self_: *mut OstreeRepo,
- options: *mut OstreeRepoPruneOptions,
- out_objects_total: *mut c_int,
- out_objects_pruned: *mut c_int,
- out_pruned_object_size_total: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_prune_static_deltas(
- self_: *mut OstreeRepo,
- commit: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_pull(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- refs_to_fetch: *mut *mut c_char,
- flags: OstreeRepoPullFlags,
- progress: *mut OstreeAsyncProgress,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_prune_from_reachable(self_: *mut OstreeRepo, options: *mut OstreeRepoPruneOptions, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_prune_static_deltas(self_: *mut OstreeRepo, commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_pull(self_: *mut OstreeRepo, remote_name: *const c_char, refs_to_fetch: *mut *mut c_char, flags: OstreeRepoPullFlags, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_pull_from_remotes_async(
- self_: *mut OstreeRepo,
- results: *const *const OstreeRepoFinderResult,
- options: *mut glib::GVariant,
- progress: *mut OstreeAsyncProgress,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
+ pub fn ostree_repo_pull_from_remotes_async(self_: *mut OstreeRepo, results: *const *const OstreeRepoFinderResult, options: *mut glib::GVariant, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_pull_from_remotes_finish(
- self_: *mut OstreeRepo,
- result: *mut gio::GAsyncResult,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_pull_one_dir(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- dir_to_pull: *const c_char,
- refs_to_fetch: *mut *mut c_char,
- flags: OstreeRepoPullFlags,
- progress: *mut OstreeAsyncProgress,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_pull_with_options(
- self_: *mut OstreeRepo,
- remote_name_or_baseurl: *const c_char,
- options: *mut glib::GVariant,
- progress: *mut OstreeAsyncProgress,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_query_object_storage_size(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- sha256: *const c_char,
- out_size: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_read_commit(
- self_: *mut OstreeRepo,
- ref_: *const c_char,
- out_root: *mut *mut gio::GFile,
- out_commit: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_read_commit_detached_metadata(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- out_metadata: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_regenerate_summary(
- self_: *mut OstreeRepo,
- additional_metadata: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_pull_from_remotes_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_pull_one_dir(self_: *mut OstreeRepo, remote_name: *const c_char, dir_to_pull: *const c_char, refs_to_fetch: *mut *mut c_char, flags: OstreeRepoPullFlags, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_pull_with_options(self_: *mut OstreeRepo, remote_name_or_baseurl: *const c_char, options: *mut glib::GVariant, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_query_object_storage_size(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_size: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_read_commit(self_: *mut OstreeRepo, ref_: *const c_char, out_root: *mut *mut gio::GFile, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_read_commit_detached_metadata(self_: *mut OstreeRepo, checksum: *const c_char, out_metadata: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_regenerate_summary(self_: *mut OstreeRepo, additional_metadata: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_2")))]
- pub fn ostree_repo_reload_config(
- self_: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_add(
- self_: *mut OstreeRepo,
- name: *const c_char,
- url: *const c_char,
- options: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_change(
- self_: *mut OstreeRepo,
- sysroot: *mut gio::GFile,
- changeop: OstreeRepoRemoteChange,
- name: *const c_char,
- url: *const c_char,
- options: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_delete(
- self_: *mut OstreeRepo,
- name: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_fetch_summary(
- self_: *mut OstreeRepo,
- name: *const c_char,
- out_summary: *mut *mut glib::GBytes,
- out_signatures: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_reload_config(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_add(self_: *mut OstreeRepo, name: *const c_char, url: *const c_char, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_change(self_: *mut OstreeRepo, sysroot: *mut gio::GFile, changeop: OstreeRepoRemoteChange, name: *const c_char, url: *const c_char, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_delete(self_: *mut OstreeRepo, name: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_fetch_summary(self_: *mut OstreeRepo, name: *const c_char, out_summary: *mut *mut glib::GBytes, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))]
- pub fn ostree_repo_remote_fetch_summary_with_options(
- self_: *mut OstreeRepo,
- name: *const c_char,
- options: *mut glib::GVariant,
- out_summary: *mut *mut glib::GBytes,
- out_signatures: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_get_gpg_verify(
- self_: *mut OstreeRepo,
- name: *const c_char,
- out_gpg_verify: *mut gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_get_gpg_verify_summary(
- self_: *mut OstreeRepo,
- name: *const c_char,
- out_gpg_verify_summary: *mut gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_get_url(
- self_: *mut OstreeRepo,
- name: *const c_char,
- out_url: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_gpg_import(
- self_: *mut OstreeRepo,
- name: *const c_char,
- source_stream: *mut gio::GInputStream,
- key_ids: *const *const c_char,
- out_imported: *mut c_uint,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_list(
- self_: *mut OstreeRepo,
- out_n_remotes: *mut c_uint,
- ) -> *mut *mut c_char;
+ pub fn ostree_repo_remote_fetch_summary_with_options(self_: *mut OstreeRepo, name: *const c_char, options: *mut glib::GVariant, out_summary: *mut *mut glib::GBytes, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ #[cfg(any(feature = "v2021_4", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))]
+ pub fn ostree_repo_remote_get_gpg_keys(self_: *mut OstreeRepo, name: *const c_char, key_ids: *const *const c_char, out_keys: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_get_gpg_verify(self_: *mut OstreeRepo, name: *const c_char, out_gpg_verify: *mut gboolean, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_get_gpg_verify_summary(self_: *mut OstreeRepo, name: *const c_char, out_gpg_verify_summary: *mut gboolean, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_get_url(self_: *mut OstreeRepo, name: *const c_char, out_url: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_gpg_import(self_: *mut OstreeRepo, name: *const c_char, source_stream: *mut gio::GInputStream, key_ids: *const *const c_char, out_imported: *mut c_uint, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_list(self_: *mut OstreeRepo, out_n_remotes: *mut c_uint) -> *mut *mut c_char;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_remote_list_collection_refs(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- out_all_refs: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_remote_list_refs(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- out_all_refs: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_remote_list_collection_refs(self_: *mut OstreeRepo, remote_name: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_remote_list_refs(self_: *mut OstreeRepo, remote_name: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_resolve_collection_ref(
- self_: *mut OstreeRepo,
- ref_: *const OstreeCollectionRef,
- allow_noent: gboolean,
- flags: OstreeRepoResolveRevExtFlags,
- out_rev: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_resolve_collection_ref(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, allow_noent: gboolean, flags: OstreeRepoResolveRevExtFlags, out_rev: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_resolve_keyring_for_collection(
- self_: *mut OstreeRepo,
- collection_id: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeRemote;
- pub fn ostree_repo_resolve_rev(
- self_: *mut OstreeRepo,
- refspec: *const c_char,
- allow_noent: gboolean,
- out_rev: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_resolve_keyring_for_collection(self_: *mut OstreeRepo, collection_id: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRemote;
+ pub fn ostree_repo_resolve_rev(self_: *mut OstreeRepo, refspec: *const c_char, allow_noent: gboolean, out_rev: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_7")))]
- pub fn ostree_repo_resolve_rev_ext(
- self_: *mut OstreeRepo,
- refspec: *const c_char,
- allow_noent: gboolean,
- flags: OstreeRepoResolveRevExtFlags,
- out_rev: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_scan_hardlinks(
- self_: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_resolve_rev_ext(self_: *mut OstreeRepo, refspec: *const c_char, allow_noent: gboolean, flags: OstreeRepoResolveRevExtFlags, out_rev: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_scan_hardlinks(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
- pub fn ostree_repo_set_alias_ref_immediate(
- self_: *mut OstreeRepo,
- remote: *const c_char,
- ref_: *const c_char,
- target: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_set_alias_ref_immediate(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, target: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
- pub fn ostree_repo_set_cache_dir(
- self_: *mut OstreeRepo,
- dfd: c_int,
- path: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_set_cache_dir(self_: *mut OstreeRepo, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_set_collection_id(
- self_: *mut OstreeRepo,
- collection_id: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_set_collection_id(self_: *mut OstreeRepo, collection_id: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_set_collection_ref_immediate(
- self_: *mut OstreeRepo,
- ref_: *const OstreeCollectionRef,
- checksum: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_set_collection_ref_immediate(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_set_disable_fsync(self_: *mut OstreeRepo, disable_fsync: gboolean);
- pub fn ostree_repo_set_ref_immediate(
- self_: *mut OstreeRepo,
- remote: *const c_char,
- ref_: *const c_char,
- checksum: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_sign_commit(
- self_: *mut OstreeRepo,
- commit_checksum: *const c_char,
- key_id: *const c_char,
- homedir: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_sign_delta(
- self_: *mut OstreeRepo,
- from_commit: *const c_char,
- to_commit: *const c_char,
- key_id: *const c_char,
- homedir: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_static_delta_execute_offline(
- self_: *mut OstreeRepo,
- dir_or_file: *mut gio::GFile,
- skip_validation: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_set_ref_immediate(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_sign_commit(self_: *mut OstreeRepo, commit_checksum: *const c_char, key_id: *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_sign_delta(self_: *mut OstreeRepo, from_commit: *const c_char, to_commit: *const c_char, key_id: *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ #[cfg(any(feature = "v2021_4", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))]
+ pub fn ostree_repo_signature_verify_commit_data(self_: *mut OstreeRepo, remote_name: *const c_char, commit_data: *mut glib::GBytes, commit_metadata: *mut glib::GBytes, flags: OstreeRepoVerifyFlags, out_results: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_static_delta_execute_offline(self_: *mut OstreeRepo, dir_or_file: *mut gio::GFile, skip_validation: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_repo_static_delta_execute_offline_with_signature(
- self_: *mut OstreeRepo,
- dir_or_file: *mut gio::GFile,
- sign: *mut OstreeSign,
- skip_validation: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_static_delta_generate(
- self_: *mut OstreeRepo,
- opt: OstreeStaticDeltaGenerateOpt,
- from: *const c_char,
- to: *const c_char,
- metadata: *mut glib::GVariant,
- params: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_static_delta_execute_offline_with_signature(self_: *mut OstreeRepo, dir_or_file: *mut gio::GFile, sign: *mut OstreeSign, skip_validation: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_static_delta_generate(self_: *mut OstreeRepo, opt: OstreeStaticDeltaGenerateOpt, from: *const c_char, to: *const c_char, metadata: *mut glib::GVariant, params: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_8", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))]
- pub fn ostree_repo_static_delta_reindex(
- repo: *mut OstreeRepo,
- flags: OstreeStaticDeltaIndexFlags,
- opt_to_commit: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_static_delta_reindex(repo: *mut OstreeRepo, flags: OstreeStaticDeltaIndexFlags, opt_to_commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_repo_static_delta_verify_signature(
- self_: *mut OstreeRepo,
- delta_id: *const c_char,
- sign: *mut OstreeSign,
- out_success_message: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_static_delta_verify_signature(self_: *mut OstreeRepo, delta_id: *const c_char, sign: *mut OstreeSign, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_transaction_set_collection_ref(
- self_: *mut OstreeRepo,
- ref_: *const OstreeCollectionRef,
- checksum: *const c_char,
- );
- pub fn ostree_repo_transaction_set_ref(
- self_: *mut OstreeRepo,
- remote: *const c_char,
- ref_: *const c_char,
- checksum: *const c_char,
- );
- pub fn ostree_repo_transaction_set_refspec(
- self_: *mut OstreeRepo,
- refspec: *const c_char,
- checksum: *const c_char,
- );
- pub fn ostree_repo_traverse_commit(
- repo: *mut OstreeRepo,
- commit_checksum: *const c_char,
- maxdepth: c_int,
- out_reachable: *mut *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_traverse_commit_union(
- repo: *mut OstreeRepo,
- commit_checksum: *const c_char,
- maxdepth: c_int,
- inout_reachable: *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_transaction_set_collection_ref(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, checksum: *const c_char);
+ pub fn ostree_repo_transaction_set_ref(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, checksum: *const c_char);
+ pub fn ostree_repo_transaction_set_refspec(self_: *mut OstreeRepo, refspec: *const c_char, checksum: *const c_char);
+ pub fn ostree_repo_traverse_commit(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, out_reachable: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_traverse_commit_union(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, inout_reachable: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
- pub fn ostree_repo_traverse_commit_union_with_parents(
- repo: *mut OstreeRepo,
- commit_checksum: *const c_char,
- maxdepth: c_int,
- inout_reachable: *mut glib::GHashTable,
- inout_parents: *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_traverse_commit_union_with_parents(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, inout_reachable: *mut glib::GHashTable, inout_parents: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_traverse_reachable_refs(
- self_: *mut OstreeRepo,
- depth: c_uint,
- reachable: *mut glib::GHashTable,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_verify_commit(
- self_: *mut OstreeRepo,
- commit_checksum: *const c_char,
- keyringdir: *mut gio::GFile,
- extra_keyring: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_verify_commit_ext(
- self_: *mut OstreeRepo,
- commit_checksum: *const c_char,
- keyringdir: *mut gio::GFile,
- extra_keyring: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeGpgVerifyResult;
+ pub fn ostree_repo_traverse_reachable_refs(self_: *mut OstreeRepo, depth: c_uint, reachable: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_verify_commit(self_: *mut OstreeRepo, commit_checksum: *const c_char, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_verify_commit_ext(self_: *mut OstreeRepo, commit_checksum: *const c_char, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult;
#[cfg(any(feature = "v2016_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_14")))]
- pub fn ostree_repo_verify_commit_for_remote(
- self_: *mut OstreeRepo,
- commit_checksum: *const c_char,
- remote_name: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeGpgVerifyResult;
- pub fn ostree_repo_verify_summary(
- self_: *mut OstreeRepo,
- remote_name: *const c_char,
- summary: *mut glib::GBytes,
- signatures: *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeGpgVerifyResult;
- pub fn ostree_repo_write_archive_to_mtree(
- self_: *mut OstreeRepo,
- archive: *mut gio::GFile,
- mtree: *mut OstreeMutableTree,
- modifier: *mut OstreeRepoCommitModifier,
- autocreate_parents: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_archive_to_mtree_from_fd(
- self_: *mut OstreeRepo,
- fd: c_int,
- mtree: *mut OstreeMutableTree,
- modifier: *mut OstreeRepoCommitModifier,
- autocreate_parents: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_commit(
- self_: *mut OstreeRepo,
- parent: *const c_char,
- subject: *const c_char,
- body: *const c_char,
- metadata: *mut glib::GVariant,
- root: *mut OstreeRepoFile,
- out_commit: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_commit_detached_metadata(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- metadata: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_commit_with_time(
- self_: *mut OstreeRepo,
- parent: *const c_char,
- subject: *const c_char,
- body: *const c_char,
- metadata: *mut glib::GVariant,
- root: *mut OstreeRepoFile,
- time: u64,
- out_commit: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_config(
- self_: *mut OstreeRepo,
- new_config: *mut glib::GKeyFile,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_content(
- self_: *mut OstreeRepo,
- expected_checksum: *const c_char,
- object_input: *mut gio::GInputStream,
- length: u64,
- out_csum: *mut *mut [*mut u8; 32],
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_content_async(
- self_: *mut OstreeRepo,
- expected_checksum: *const c_char,
- object: *mut gio::GInputStream,
- length: u64,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
- pub fn ostree_repo_write_content_finish(
- self_: *mut OstreeRepo,
- result: *mut gio::GAsyncResult,
- out_csum: *mut *mut u8,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_content_trusted(
- self_: *mut OstreeRepo,
- checksum: *const c_char,
- object_input: *mut gio::GInputStream,
- length: u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_dfd_to_mtree(
- self_: *mut OstreeRepo,
- dfd: c_int,
- path: *const c_char,
- mtree: *mut OstreeMutableTree,
- modifier: *mut OstreeRepoCommitModifier,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_directory_to_mtree(
- self_: *mut OstreeRepo,
- dir: *mut gio::GFile,
- mtree: *mut OstreeMutableTree,
- modifier: *mut OstreeRepoCommitModifier,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_metadata(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- expected_checksum: *const c_char,
- object: *mut glib::GVariant,
- out_csum: *mut *mut [*mut u8; 32],
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_metadata_async(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- expected_checksum: *const c_char,
- object: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
- pub fn ostree_repo_write_metadata_finish(
- self_: *mut OstreeRepo,
- result: *mut gio::GAsyncResult,
- out_csum: *mut *mut [c_uchar; 32],
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_metadata_stream_trusted(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- object_input: *mut gio::GInputStream,
- length: u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_metadata_trusted(
- self_: *mut OstreeRepo,
- objtype: OstreeObjectType,
- checksum: *const c_char,
- variant: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_write_mtree(
- self_: *mut OstreeRepo,
- mtree: *mut OstreeMutableTree,
- out_file: *mut *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_verify_commit_for_remote(self_: *mut OstreeRepo, commit_checksum: *const c_char, remote_name: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult;
+ pub fn ostree_repo_verify_summary(self_: *mut OstreeRepo, remote_name: *const c_char, summary: *mut glib::GBytes, signatures: *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult;
+ pub fn ostree_repo_write_archive_to_mtree(self_: *mut OstreeRepo, archive: *mut gio::GFile, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, autocreate_parents: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_archive_to_mtree_from_fd(self_: *mut OstreeRepo, fd: c_int, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, autocreate_parents: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_commit(self_: *mut OstreeRepo, parent: *const c_char, subject: *const c_char, body: *const c_char, metadata: *mut glib::GVariant, root: *mut OstreeRepoFile, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_commit_detached_metadata(self_: *mut OstreeRepo, checksum: *const c_char, metadata: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_commit_with_time(self_: *mut OstreeRepo, parent: *const c_char, subject: *const c_char, body: *const c_char, metadata: *mut glib::GVariant, root: *mut OstreeRepoFile, time: u64, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_config(self_: *mut OstreeRepo, new_config: *mut glib::GKeyFile, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_content(self_: *mut OstreeRepo, expected_checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_content_async(self_: *mut OstreeRepo, expected_checksum: *const c_char, object: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
+ pub fn ostree_repo_write_content_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, out_csum: *mut *mut u8, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_content_trusted(self_: *mut OstreeRepo, checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_dfd_to_mtree(self_: *mut OstreeRepo, dfd: c_int, path: *const c_char, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_directory_to_mtree(self_: *mut OstreeRepo, dir: *mut gio::GFile, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_metadata(self_: *mut OstreeRepo, objtype: OstreeObjectType, expected_checksum: *const c_char, object: *mut glib::GVariant, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_metadata_async(self_: *mut OstreeRepo, objtype: OstreeObjectType, expected_checksum: *const c_char, object: *mut glib::GVariant, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
+ pub fn ostree_repo_write_metadata_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, out_csum: *mut *mut [c_uchar; 32], error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_metadata_stream_trusted(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_metadata_trusted(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, variant: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_write_mtree(self_: *mut OstreeRepo, mtree: *mut OstreeMutableTree, out_file: *mut *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2021_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))]
- pub fn ostree_repo_write_regfile(
- self_: *mut OstreeRepo,
- expected_checksum: *const c_char,
- uid: u32,
- gid: u32,
- mode: u32,
- content_len: u64,
- xattrs: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeContentWriter;
+ pub fn ostree_repo_write_regfile(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, mode: u32, content_len: u64, xattrs: *mut glib::GVariant, error: *mut *mut glib::GError) -> *mut OstreeContentWriter;
#[cfg(any(feature = "v2021_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))]
- pub fn ostree_repo_write_regfile_inline(
- self_: *mut OstreeRepo,
- expected_checksum: *const c_char,
- uid: u32,
- gid: u32,
- mode: u32,
- xattrs: *mut glib::GVariant,
- buf: *const u8,
- len: size_t,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut c_char;
+ pub fn ostree_repo_write_regfile_inline(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, mode: u32, xattrs: *mut glib::GVariant, buf: *const u8, len: size_t, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char;
#[cfg(any(feature = "v2021_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))]
- pub fn ostree_repo_write_symlink(
- self_: *mut OstreeRepo,
- expected_checksum: *const c_char,
- uid: u32,
- gid: u32,
- xattrs: *mut glib::GVariant,
- symlink_target: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut c_char;
+ pub fn ostree_repo_write_symlink(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, xattrs: *mut glib::GVariant, symlink_target: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char;
//=========================================================================
// OstreeRepoFile
//=========================================================================
pub fn ostree_repo_file_get_type() -> GType;
- pub fn ostree_repo_file_ensure_resolved(
- self_: *mut OstreeRepoFile,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_repo_file_ensure_resolved(self_: *mut OstreeRepoFile, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_file_get_checksum(self_: *mut OstreeRepoFile) -> *const c_char;
pub fn ostree_repo_file_get_repo(self_: *mut OstreeRepoFile) -> *mut OstreeRepo;
pub fn ostree_repo_file_get_root(self_: *mut OstreeRepoFile) -> *mut OstreeRepoFile;
- pub fn ostree_repo_file_get_xattrs(
- self_: *mut OstreeRepoFile,
- out_xattrs: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_file_tree_find_child(
- self_: *mut OstreeRepoFile,
- name: *const c_char,
- is_dir: *mut gboolean,
- out_container: *mut *mut glib::GVariant,
- ) -> c_int;
+ pub fn ostree_repo_file_get_xattrs(self_: *mut OstreeRepoFile, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_file_tree_find_child(self_: *mut OstreeRepoFile, name: *const c_char, is_dir: *mut gboolean, out_container: *mut *mut glib::GVariant) -> c_int;
pub fn ostree_repo_file_tree_get_contents(self_: *mut OstreeRepoFile) -> *mut glib::GVariant;
- pub fn ostree_repo_file_tree_get_contents_checksum(self_: *mut OstreeRepoFile)
- -> *const c_char;
+ pub fn ostree_repo_file_tree_get_contents_checksum(self_: *mut OstreeRepoFile) -> *const c_char;
pub fn ostree_repo_file_tree_get_metadata(self_: *mut OstreeRepoFile) -> *mut glib::GVariant;
- pub fn ostree_repo_file_tree_get_metadata_checksum(self_: *mut OstreeRepoFile)
- -> *const c_char;
- pub fn ostree_repo_file_tree_query_child(
- self_: *mut OstreeRepoFile,
- n: c_int,
- attributes: *const c_char,
- flags: gio::GFileQueryInfoFlags,
- out_info: *mut *mut gio::GFileInfo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_repo_file_tree_set_metadata(
- self_: *mut OstreeRepoFile,
- checksum: *const c_char,
- metadata: *mut glib::GVariant,
- );
+ pub fn ostree_repo_file_tree_get_metadata_checksum(self_: *mut OstreeRepoFile) -> *const c_char;
+ pub fn ostree_repo_file_tree_query_child(self_: *mut OstreeRepoFile, n: c_int, attributes: *const c_char, flags: gio::GFileQueryInfoFlags, out_info: *mut *mut gio::GFileInfo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_repo_file_tree_set_metadata(self_: *mut OstreeRepoFile, checksum: *const c_char, metadata: *mut glib::GVariant);
//=========================================================================
// OstreeRepoFinderAvahi
pub fn ostree_repo_finder_avahi_get_type() -> GType;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_avahi_new(
- context: *mut glib::GMainContext,
- ) -> *mut OstreeRepoFinderAvahi;
+ pub fn ostree_repo_finder_avahi_new(context: *mut glib::GMainContext) -> *mut OstreeRepoFinderAvahi;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_avahi_start(
- self_: *mut OstreeRepoFinderAvahi,
- error: *mut *mut glib::GError,
- );
+ pub fn ostree_repo_finder_avahi_start(self_: *mut OstreeRepoFinderAvahi, error: *mut *mut glib::GError);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
pub fn ostree_repo_finder_avahi_stop(self_: *mut OstreeRepoFinderAvahi);
pub fn ostree_repo_finder_mount_get_type() -> GType;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_mount_new(
- monitor: *mut gio::GVolumeMonitor,
- ) -> *mut OstreeRepoFinderMount;
+ pub fn ostree_repo_finder_mount_new(monitor: *mut gio::GVolumeMonitor) -> *mut OstreeRepoFinderMount;
//=========================================================================
// OstreeRepoFinderOverride
pub fn ostree_repo_finder_override_new() -> *mut OstreeRepoFinderOverride;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_override_add_uri(
- self_: *mut OstreeRepoFinderOverride,
- uri: *const c_char,
- );
+ pub fn ostree_repo_finder_override_add_uri(self_: *mut OstreeRepoFinderOverride, uri: *const c_char);
//=========================================================================
// OstreeSePolicy
//=========================================================================
pub fn ostree_sepolicy_get_type() -> GType;
- pub fn ostree_sepolicy_new(
- path: *mut gio::GFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSePolicy;
+ pub fn ostree_sepolicy_new(path: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy;
#[cfg(any(feature = "v2017_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
- pub fn ostree_sepolicy_new_at(
- rootfs_dfd: c_int,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSePolicy;
+ pub fn ostree_sepolicy_new_at(rootfs_dfd: c_int, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy;
pub fn ostree_sepolicy_fscreatecon_cleanup(unused: *mut *mut c_void);
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
pub fn ostree_sepolicy_get_csum(self_: *mut OstreeSePolicy) -> *const c_char;
- pub fn ostree_sepolicy_get_label(
- self_: *mut OstreeSePolicy,
- relpath: *const c_char,
- unix_mode: u32,
- out_label: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sepolicy_get_label(self_: *mut OstreeSePolicy, relpath: *const c_char, unix_mode: u32, out_label: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_sepolicy_get_name(self_: *mut OstreeSePolicy) -> *const c_char;
pub fn ostree_sepolicy_get_path(self_: *mut OstreeSePolicy) -> *mut gio::GFile;
- pub fn ostree_sepolicy_restorecon(
- self_: *mut OstreeSePolicy,
- path: *const c_char,
- info: *mut gio::GFileInfo,
- target: *mut gio::GFile,
- flags: OstreeSePolicyRestoreconFlags,
- out_new_label: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sepolicy_setfscreatecon(
- self_: *mut OstreeSePolicy,
- path: *const c_char,
- mode: u32,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sepolicy_restorecon(self_: *mut OstreeSePolicy, path: *const c_char, info: *mut gio::GFileInfo, target: *mut gio::GFile, flags: OstreeSePolicyRestoreconFlags, out_new_label: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sepolicy_setfscreatecon(self_: *mut OstreeSePolicy, path: *const c_char, mode: u32, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeSysroot
pub fn ostree_sysroot_get_type() -> GType;
pub fn ostree_sysroot_new(path: *mut gio::GFile) -> *mut OstreeSysroot;
pub fn ostree_sysroot_new_default() -> *mut OstreeSysroot;
- pub fn ostree_sysroot_get_deployment_origin_path(
- deployment_path: *mut gio::GFile,
- ) -> *mut gio::GFile;
- pub fn ostree_sysroot_cleanup(
- self_: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_get_deployment_origin_path(deployment_path: *mut gio::GFile) -> *mut gio::GFile;
+ pub fn ostree_sysroot_cleanup(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_sysroot_cleanup_prune_repo(
- sysroot: *mut OstreeSysroot,
- options: *mut OstreeRepoPruneOptions,
- out_objects_total: *mut c_int,
- out_objects_pruned: *mut c_int,
- out_pruned_object_size_total: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_cleanup_prune_repo(sysroot: *mut OstreeSysroot, options: *mut OstreeRepoPruneOptions, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
- pub fn ostree_sysroot_deploy_tree(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- revision: *const c_char,
- origin: *mut glib::GKeyFile,
- provided_merge_deployment: *mut OstreeDeployment,
- override_kernel_argv: *mut *mut c_char,
- out_new_deployment: *mut *mut OstreeDeployment,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_deploy_tree(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, provided_merge_deployment: *mut OstreeDeployment, override_kernel_argv: *mut *mut c_char, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_sysroot_deploy_tree_with_options(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- revision: *const c_char,
- origin: *mut glib::GKeyFile,
- provided_merge_deployment: *mut OstreeDeployment,
- opts: *mut OstreeSysrootDeployTreeOpts,
- out_new_deployment: *mut *mut OstreeDeployment,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_deployment_set_kargs(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- new_kargs: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_deployment_set_mutable(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- is_mutable: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_deploy_tree_with_options(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, provided_merge_deployment: *mut OstreeDeployment, opts: *mut OstreeSysrootDeployTreeOpts, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_deployment_set_kargs(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, new_kargs: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_deployment_set_mutable(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, is_mutable: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))]
- pub fn ostree_sysroot_deployment_set_pinned(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- is_pinned: gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_deployment_set_pinned(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, is_pinned: gboolean, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_sysroot_deployment_unlock(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- unlocked_state: OstreeDeploymentUnlockedState,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_ensure_initialized(
- self_: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_get_booted_deployment(self_: *mut OstreeSysroot)
- -> *mut OstreeDeployment;
+ pub fn ostree_sysroot_deployment_unlock(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, unlocked_state: OstreeDeploymentUnlockedState, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_ensure_initialized(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_get_booted_deployment(self_: *mut OstreeSysroot) -> *mut OstreeDeployment;
pub fn ostree_sysroot_get_bootversion(self_: *mut OstreeSysroot) -> c_int;
- pub fn ostree_sysroot_get_deployment_directory(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- ) -> *mut gio::GFile;
- pub fn ostree_sysroot_get_deployment_dirpath(
- self_: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- ) -> *mut c_char;
+ pub fn ostree_sysroot_get_deployment_directory(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment) -> *mut gio::GFile;
+ pub fn ostree_sysroot_get_deployment_dirpath(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment) -> *mut c_char;
pub fn ostree_sysroot_get_deployments(self_: *mut OstreeSysroot) -> *mut glib::GPtrArray;
pub fn ostree_sysroot_get_fd(self_: *mut OstreeSysroot) -> c_int;
- pub fn ostree_sysroot_get_merge_deployment(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- ) -> *mut OstreeDeployment;
+ pub fn ostree_sysroot_get_merge_deployment(self_: *mut OstreeSysroot, osname: *const c_char) -> *mut OstreeDeployment;
pub fn ostree_sysroot_get_path(self_: *mut OstreeSysroot) -> *mut gio::GFile;
- pub fn ostree_sysroot_get_repo(
- self_: *mut OstreeSysroot,
- out_repo: *mut *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_get_repo(self_: *mut OstreeSysroot, out_repo: *mut *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
- pub fn ostree_sysroot_get_staged_deployment(self_: *mut OstreeSysroot)
- -> *mut OstreeDeployment;
+ pub fn ostree_sysroot_get_staged_deployment(self_: *mut OstreeSysroot) -> *mut OstreeDeployment;
pub fn ostree_sysroot_get_subbootversion(self_: *mut OstreeSysroot) -> c_int;
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_sysroot_init_osname(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_init_osname(self_: *mut OstreeSysroot, osname: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
- pub fn ostree_sysroot_initialize(
- self_: *mut OstreeSysroot,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_initialize(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
pub fn ostree_sysroot_is_booted(self_: *mut OstreeSysroot) -> gboolean;
- pub fn ostree_sysroot_load(
- self_: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_load(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))]
- pub fn ostree_sysroot_load_if_changed(
- self_: *mut OstreeSysroot,
- out_changed: *mut gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_lock(
- self_: *mut OstreeSysroot,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_lock_async(
- self_: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
- pub fn ostree_sysroot_lock_finish(
- self_: *mut OstreeSysroot,
- result: *mut gio::GAsyncResult,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_origin_new_from_refspec(
- self_: *mut OstreeSysroot,
- refspec: *const c_char,
- ) -> *mut glib::GKeyFile;
- pub fn ostree_sysroot_prepare_cleanup(
- self_: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_load_if_changed(self_: *mut OstreeSysroot, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_lock(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_lock_async(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
+ pub fn ostree_sysroot_lock_finish(self_: *mut OstreeSysroot, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_origin_new_from_refspec(self_: *mut OstreeSysroot, refspec: *const c_char) -> *mut glib::GKeyFile;
+ pub fn ostree_sysroot_prepare_cleanup(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_7")))]
- pub fn ostree_sysroot_query_deployments_for(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- out_pending: *mut *mut OstreeDeployment,
- out_rollback: *mut *mut OstreeDeployment,
- );
+ pub fn ostree_sysroot_query_deployments_for(self_: *mut OstreeSysroot, osname: *const c_char, out_pending: *mut *mut OstreeDeployment, out_rollback: *mut *mut OstreeDeployment);
#[cfg(any(feature = "v2017_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_7")))]
pub fn ostree_sysroot_repo(self_: *mut OstreeSysroot) -> *mut OstreeRepo;
#[cfg(any(feature = "v2021_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))]
- pub fn ostree_sysroot_require_booted_deployment(
- self_: *mut OstreeSysroot,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeDeployment;
+ pub fn ostree_sysroot_require_booted_deployment(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> *mut OstreeDeployment;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
pub fn ostree_sysroot_set_mount_namespace_in_use(self_: *mut OstreeSysroot);
- pub fn ostree_sysroot_simple_write_deployment(
- sysroot: *mut OstreeSysroot,
- osname: *const c_char,
- new_deployment: *mut OstreeDeployment,
- merge_deployment: *mut OstreeDeployment,
- flags: OstreeSysrootSimpleWriteDeploymentFlags,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_simple_write_deployment(sysroot: *mut OstreeSysroot, osname: *const c_char, new_deployment: *mut OstreeDeployment, merge_deployment: *mut OstreeDeployment, flags: OstreeSysrootSimpleWriteDeploymentFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_sysroot_stage_overlay_initrd(
- self_: *mut OstreeSysroot,
- fd: c_int,
- out_checksum: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_stage_overlay_initrd(self_: *mut OstreeSysroot, fd: c_int, out_checksum: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
- pub fn ostree_sysroot_stage_tree(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- revision: *const c_char,
- origin: *mut glib::GKeyFile,
- merge_deployment: *mut OstreeDeployment,
- override_kernel_argv: *mut *mut c_char,
- out_new_deployment: *mut *mut OstreeDeployment,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_stage_tree(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, merge_deployment: *mut OstreeDeployment, override_kernel_argv: *mut *mut c_char, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))]
- pub fn ostree_sysroot_stage_tree_with_options(
- self_: *mut OstreeSysroot,
- osname: *const c_char,
- revision: *const c_char,
- origin: *mut glib::GKeyFile,
- merge_deployment: *mut OstreeDeployment,
- opts: *mut OstreeSysrootDeployTreeOpts,
- out_new_deployment: *mut *mut OstreeDeployment,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_try_lock(
- self_: *mut OstreeSysroot,
- out_acquired: *mut gboolean,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_stage_tree_with_options(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, merge_deployment: *mut OstreeDeployment, opts: *mut OstreeSysrootDeployTreeOpts, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_try_lock(self_: *mut OstreeSysroot, out_acquired: *mut gboolean, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_sysroot_unload(self_: *mut OstreeSysroot);
pub fn ostree_sysroot_unlock(self_: *mut OstreeSysroot);
- pub fn ostree_sysroot_write_deployments(
- self_: *mut OstreeSysroot,
- new_deployments: *mut glib::GPtrArray,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_write_deployments(self_: *mut OstreeSysroot, new_deployments: *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
- pub fn ostree_sysroot_write_deployments_with_options(
- self_: *mut OstreeSysroot,
- new_deployments: *mut glib::GPtrArray,
- opts: *mut OstreeSysrootWriteDeploymentsOpts,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_write_origin_file(
- sysroot: *mut OstreeSysroot,
- deployment: *mut OstreeDeployment,
- new_origin: *mut glib::GKeyFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_write_deployments_with_options(self_: *mut OstreeSysroot, new_deployments: *mut glib::GPtrArray, opts: *mut OstreeSysrootWriteDeploymentsOpts, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_write_origin_file(sysroot: *mut OstreeSysroot, deployment: *mut OstreeDeployment, new_origin: *mut glib::GKeyFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeSysrootUpgrader
//=========================================================================
pub fn ostree_sysroot_upgrader_get_type() -> GType;
- pub fn ostree_sysroot_upgrader_new(
- sysroot: *mut OstreeSysroot,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSysrootUpgrader;
- pub fn ostree_sysroot_upgrader_new_for_os(
- sysroot: *mut OstreeSysroot,
- osname: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSysrootUpgrader;
- pub fn ostree_sysroot_upgrader_new_for_os_with_flags(
- sysroot: *mut OstreeSysroot,
- osname: *const c_char,
- flags: OstreeSysrootUpgraderFlags,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSysrootUpgrader;
- pub fn ostree_sysroot_upgrader_check_timestamps(
- repo: *mut OstreeRepo,
- from_rev: *const c_char,
- to_rev: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_upgrader_deploy(
- self_: *mut OstreeSysrootUpgrader,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_upgrader_dup_origin(
- self_: *mut OstreeSysrootUpgrader,
- ) -> *mut glib::GKeyFile;
- pub fn ostree_sysroot_upgrader_get_origin(
- self_: *mut OstreeSysrootUpgrader,
- ) -> *mut glib::GKeyFile;
- pub fn ostree_sysroot_upgrader_get_origin_description(
- self_: *mut OstreeSysrootUpgrader,
- ) -> *mut c_char;
- pub fn ostree_sysroot_upgrader_pull(
- self_: *mut OstreeSysrootUpgrader,
- flags: OstreeRepoPullFlags,
- upgrader_flags: OstreeSysrootUpgraderPullFlags,
- progress: *mut OstreeAsyncProgress,
- out_changed: *mut gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_upgrader_pull_one_dir(
- self_: *mut OstreeSysrootUpgrader,
- dir_to_pull: *const c_char,
- flags: OstreeRepoPullFlags,
- upgrader_flags: OstreeSysrootUpgraderPullFlags,
- progress: *mut OstreeAsyncProgress,
- out_changed: *mut gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sysroot_upgrader_set_origin(
- self_: *mut OstreeSysrootUpgrader,
- origin: *mut glib::GKeyFile,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sysroot_upgrader_new(sysroot: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader;
+ pub fn ostree_sysroot_upgrader_new_for_os(sysroot: *mut OstreeSysroot, osname: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader;
+ pub fn ostree_sysroot_upgrader_new_for_os_with_flags(sysroot: *mut OstreeSysroot, osname: *const c_char, flags: OstreeSysrootUpgraderFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader;
+ pub fn ostree_sysroot_upgrader_check_timestamps(repo: *mut OstreeRepo, from_rev: *const c_char, to_rev: *const c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_upgrader_deploy(self_: *mut OstreeSysrootUpgrader, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_upgrader_dup_origin(self_: *mut OstreeSysrootUpgrader) -> *mut glib::GKeyFile;
+ pub fn ostree_sysroot_upgrader_get_origin(self_: *mut OstreeSysrootUpgrader) -> *mut glib::GKeyFile;
+ pub fn ostree_sysroot_upgrader_get_origin_description(self_: *mut OstreeSysrootUpgrader) -> *mut c_char;
+ pub fn ostree_sysroot_upgrader_pull(self_: *mut OstreeSysrootUpgrader, flags: OstreeRepoPullFlags, upgrader_flags: OstreeSysrootUpgraderPullFlags, progress: *mut OstreeAsyncProgress, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_upgrader_pull_one_dir(self_: *mut OstreeSysrootUpgrader, dir_to_pull: *const c_char, flags: OstreeRepoPullFlags, upgrader_flags: OstreeSysrootUpgraderPullFlags, progress: *mut OstreeAsyncProgress, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sysroot_upgrader_set_origin(self_: *mut OstreeSysrootUpgrader, origin: *mut glib::GKeyFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// OstreeRepoFinder
pub fn ostree_repo_finder_get_type() -> GType;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_resolve_all_async(
- finders: *const *mut OstreeRepoFinder,
- refs: *const *const OstreeCollectionRef,
- parent_repo: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
+ pub fn ostree_repo_finder_resolve_all_async(finders: *const *mut OstreeRepoFinder, refs: *const *const OstreeCollectionRef, parent_repo: *mut OstreeRepo, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_resolve_all_finish(
- result: *mut gio::GAsyncResult,
- error: *mut *mut glib::GError,
- ) -> *mut glib::GPtrArray;
+ pub fn ostree_repo_finder_resolve_all_finish(result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut glib::GPtrArray;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_resolve_async(
- self_: *mut OstreeRepoFinder,
- refs: *const *const OstreeCollectionRef,
- parent_repo: *mut OstreeRepo,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
+ pub fn ostree_repo_finder_resolve_async(self_: *mut OstreeRepoFinder, refs: *const *const OstreeCollectionRef, parent_repo: *mut OstreeRepo, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_repo_finder_resolve_finish(
- self_: *mut OstreeRepoFinder,
- result: *mut gio::GAsyncResult,
- error: *mut *mut glib::GError,
- ) -> *mut glib::GPtrArray;
+ pub fn ostree_repo_finder_resolve_finish(self_: *mut OstreeRepoFinder, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut glib::GPtrArray;
//=========================================================================
// OstreeSign
pub fn ostree_sign_get_all() -> *mut glib::GPtrArray;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_get_by_name(
- name: *const c_char,
- error: *mut *mut glib::GError,
- ) -> *mut OstreeSign;
+ pub fn ostree_sign_get_by_name(name: *const c_char, error: *mut *mut glib::GError) -> *mut OstreeSign;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_add_pk(
- self_: *mut OstreeSign,
- public_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_add_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_clear_keys(
- self_: *mut OstreeSign,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_clear_keys(self_: *mut OstreeSign, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_commit(
- self_: *mut OstreeSign,
- repo: *mut OstreeRepo,
- commit_checksum: *const c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_commit(self_: *mut OstreeSign, repo: *mut OstreeRepo, commit_checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_commit_verify(
- self_: *mut OstreeSign,
- repo: *mut OstreeRepo,
- commit_checksum: *const c_char,
- out_success_message: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_commit_verify(self_: *mut OstreeSign, repo: *mut OstreeRepo, commit_checksum: *const c_char, out_success_message: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_data(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signature: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_data_verify(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signatures: *mut glib::GVariant,
- out_success_message: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_dummy_add_pk(
- self_: *mut OstreeSign,
- key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_dummy_data(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signature: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_dummy_data_verify(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signatures: *mut glib::GVariant,
- success_message: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_dummy_add_pk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_dummy_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_dummy_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_sign_dummy_get_name(self_: *mut OstreeSign) -> *const c_char;
pub fn ostree_sign_dummy_metadata_format(self_: *mut OstreeSign) -> *const c_char;
pub fn ostree_sign_dummy_metadata_key(self_: *mut OstreeSign) -> *const c_char;
- pub fn ostree_sign_dummy_set_pk(
- self_: *mut OstreeSign,
- key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_dummy_set_sk(
- self_: *mut OstreeSign,
- key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_ed25519_add_pk(
- self_: *mut OstreeSign,
- public_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_ed25519_clear_keys(
- self_: *mut OstreeSign,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_ed25519_data(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signature: *mut *mut glib::GBytes,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_ed25519_data_verify(
- self_: *mut OstreeSign,
- data: *mut glib::GBytes,
- signatures: *mut glib::GVariant,
- out_success_message: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_dummy_set_pk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_dummy_set_sk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_ed25519_add_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_ed25519_clear_keys(self_: *mut OstreeSign, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_ed25519_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_ed25519_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_sign_ed25519_get_name(self_: *mut OstreeSign) -> *const c_char;
- pub fn ostree_sign_ed25519_load_pk(
- self_: *mut OstreeSign,
- options: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_ed25519_load_pk(self_: *mut OstreeSign, options: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_sign_ed25519_metadata_format(self_: *mut OstreeSign) -> *const c_char;
pub fn ostree_sign_ed25519_metadata_key(self_: *mut OstreeSign) -> *const c_char;
- pub fn ostree_sign_ed25519_set_pk(
- self_: *mut OstreeSign,
- public_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_sign_ed25519_set_sk(
- self_: *mut OstreeSign,
- secret_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_ed25519_set_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_sign_ed25519_set_sk(self_: *mut OstreeSign, secret_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
pub fn ostree_sign_get_name(self_: *mut OstreeSign) -> *const c_char;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_load_pk(
- self_: *mut OstreeSign,
- options: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_load_pk(self_: *mut OstreeSign, options: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
pub fn ostree_sign_metadata_format(self_: *mut OstreeSign) -> *const c_char;
pub fn ostree_sign_metadata_key(self_: *mut OstreeSign) -> *const c_char;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_set_pk(
- self_: *mut OstreeSign,
- public_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_set_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_set_sk(
- self_: *mut OstreeSign,
- secret_key: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_set_sk(self_: *mut OstreeSign, secret_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2020_2", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))]
- pub fn ostree_sign_summary(
- self_: *mut OstreeSign,
- repo: *mut OstreeRepo,
- keys: *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_sign_summary(self_: *mut OstreeSign, repo: *mut OstreeRepo, keys: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
//=========================================================================
// Other functions
//=========================================================================
#[cfg(any(feature = "v2017_15", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))]
- pub fn ostree_break_hardlink(
- dfd: c_int,
- path: *const c_char,
- skip_xattrs: gboolean,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_break_hardlink(dfd: c_int, path: *const c_char, skip_xattrs: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
pub fn ostree_check_version(required_year: c_uint, required_release: c_uint) -> gboolean;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_8")))]
pub fn ostree_checksum_b64_to_bytes(checksum: *const c_char) -> *mut [c_uchar; 32];
pub fn ostree_checksum_bytes_peek(bytes: *mut glib::GVariant) -> *const [c_uchar; 32];
- pub fn ostree_checksum_bytes_peek_validate(
- bytes: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> *const [c_uchar; 32];
- pub fn ostree_checksum_file(
- f: *mut gio::GFile,
- objtype: OstreeObjectType,
- out_csum: *mut *mut [*mut u8; 32],
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_checksum_file_async(
- f: *mut gio::GFile,
- objtype: OstreeObjectType,
- io_priority: c_int,
- cancellable: *mut gio::GCancellable,
- callback: gio::GAsyncReadyCallback,
- user_data: gpointer,
- );
- pub fn ostree_checksum_file_async_finish(
- f: *mut gio::GFile,
- result: *mut gio::GAsyncResult,
- out_csum: *mut *mut [*mut u8; 32],
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_checksum_bytes_peek_validate(bytes: *mut glib::GVariant, error: *mut *mut glib::GError) -> *const [c_uchar; 32];
+ pub fn ostree_checksum_file(f: *mut gio::GFile, objtype: OstreeObjectType, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_checksum_file_async(f: *mut gio::GFile, objtype: OstreeObjectType, io_priority: c_int, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer);
+ pub fn ostree_checksum_file_async_finish(f: *mut gio::GFile, result: *mut gio::GAsyncResult, out_csum: *mut *mut [*mut u8; 32], error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_13", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))]
- pub fn ostree_checksum_file_at(
- dfd: c_int,
- path: *const c_char,
- stbuf: *mut stat,
- objtype: OstreeObjectType,
- flags: OstreeChecksumFlags,
- out_checksum: *mut *mut c_char,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_checksum_file_from_input(
- file_info: *mut gio::GFileInfo,
- xattrs: *mut glib::GVariant,
- in_: *mut gio::GInputStream,
- objtype: OstreeObjectType,
- out_csum: *mut *mut [*mut u8; 32],
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_checksum_file_at(dfd: c_int, path: *const c_char, stbuf: *mut stat, objtype: OstreeObjectType, flags: OstreeChecksumFlags, out_checksum: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_checksum_file_from_input(file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, in_: *mut gio::GInputStream, objtype: OstreeObjectType, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_checksum_from_bytes(csum: *const [c_uchar; 32]) -> *mut c_char;
pub fn ostree_checksum_from_bytes_v(csum_v: *mut glib::GVariant) -> *mut c_char;
pub fn ostree_checksum_inplace_from_bytes(csum: *const [c_uchar; 32], buf: *mut c_char);
pub fn ostree_commit_get_content_checksum(commit_variant: *mut glib::GVariant) -> *mut c_char;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
- pub fn ostree_commit_get_object_sizes(
- commit_variant: *mut glib::GVariant,
- out_sizes_entries: *mut *mut glib::GPtrArray,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_commit_get_object_sizes(commit_variant: *mut glib::GVariant, out_sizes_entries: *mut *mut glib::GPtrArray, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_commit_get_parent(commit_variant: *mut glib::GVariant) -> *mut c_char;
#[cfg(any(feature = "v2016_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_3")))]
pub fn ostree_commit_get_timestamp(commit_variant: *mut glib::GVariant) -> u64;
#[cfg(any(feature = "v2021_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))]
- pub fn ostree_commit_metadata_for_bootable(
- root: *mut gio::GFile,
- dict: *mut glib::GVariantDict,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_content_file_parse(
- compressed: gboolean,
- content_path: *mut gio::GFile,
- trusted: gboolean,
- out_input: *mut *mut gio::GInputStream,
- out_file_info: *mut *mut gio::GFileInfo,
- out_xattrs: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_content_file_parse_at(
- compressed: gboolean,
- parent_dfd: c_int,
- path: *const c_char,
- trusted: gboolean,
- out_input: *mut *mut gio::GInputStream,
- out_file_info: *mut *mut gio::GFileInfo,
- out_xattrs: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_content_stream_parse(
- compressed: gboolean,
- input: *mut gio::GInputStream,
- input_length: u64,
- trusted: gboolean,
- out_input: *mut *mut gio::GInputStream,
- out_file_info: *mut *mut gio::GFileInfo,
- out_xattrs: *mut *mut glib::GVariant,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_create_directory_metadata(
- dir_info: *mut gio::GFileInfo,
- xattrs: *mut glib::GVariant,
- ) -> *mut glib::GVariant;
- pub fn ostree_diff_dirs(
- flags: OstreeDiffFlags,
- a: *mut gio::GFile,
- b: *mut gio::GFile,
- modified: *mut glib::GPtrArray,
- removed: *mut glib::GPtrArray,
- added: *mut glib::GPtrArray,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_commit_metadata_for_bootable(root: *mut gio::GFile, dict: *mut glib::GVariantDict, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_content_file_parse(compressed: gboolean, content_path: *mut gio::GFile, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_content_file_parse_at(compressed: gboolean, parent_dfd: c_int, path: *const c_char, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_content_stream_parse(compressed: gboolean, input: *mut gio::GInputStream, input_length: u64, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_create_directory_metadata(dir_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant) -> *mut glib::GVariant;
+ pub fn ostree_diff_dirs(flags: OstreeDiffFlags, a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_4", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
- pub fn ostree_diff_dirs_with_options(
- flags: OstreeDiffFlags,
- a: *mut gio::GFile,
- b: *mut gio::GFile,
- modified: *mut glib::GPtrArray,
- removed: *mut glib::GPtrArray,
- added: *mut glib::GPtrArray,
- options: *mut OstreeDiffDirsOptions,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_diff_print(
- a: *mut gio::GFile,
- b: *mut gio::GFile,
- modified: *mut glib::GPtrArray,
- removed: *mut glib::GPtrArray,
- added: *mut glib::GPtrArray,
- );
+ pub fn ostree_diff_dirs_with_options(flags: OstreeDiffFlags, a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray, options: *mut OstreeDiffDirsOptions, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_diff_print(a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray);
#[cfg(any(feature = "v2017_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
pub fn ostree_gpg_error_quark() -> glib::GQuark;
pub fn ostree_hash_object_name(a: gconstpointer) -> c_uint;
pub fn ostree_metadata_variant_type(objtype: OstreeObjectType) -> *const glib::GVariantType;
- pub fn ostree_object_from_string(
- str: *const c_char,
- out_checksum: *mut *mut c_char,
- out_objtype: *mut OstreeObjectType,
- );
- pub fn ostree_object_name_deserialize(
- variant: *mut glib::GVariant,
- out_checksum: *mut *const c_char,
- out_objtype: *mut OstreeObjectType,
- );
- pub fn ostree_object_name_serialize(
- checksum: *const c_char,
- objtype: OstreeObjectType,
- ) -> *mut glib::GVariant;
- pub fn ostree_object_to_string(
- checksum: *const c_char,
- objtype: OstreeObjectType,
- ) -> *mut c_char;
+ pub fn ostree_object_from_string(str: *const c_char, out_checksum: *mut *mut c_char, out_objtype: *mut OstreeObjectType);
+ pub fn ostree_object_name_deserialize(variant: *mut glib::GVariant, out_checksum: *mut *const c_char, out_objtype: *mut OstreeObjectType);
+ pub fn ostree_object_name_serialize(checksum: *const c_char, objtype: OstreeObjectType) -> *mut glib::GVariant;
+ pub fn ostree_object_to_string(checksum: *const c_char, objtype: OstreeObjectType) -> *mut c_char;
pub fn ostree_object_type_from_string(str: *const c_char) -> OstreeObjectType;
pub fn ostree_object_type_to_string(objtype: OstreeObjectType) -> *const c_char;
- pub fn ostree_parse_refspec(
- refspec: *const c_char,
- out_remote: *mut *mut c_char,
- out_ref: *mut *mut c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_parse_refspec(refspec: *const c_char, out_remote: *mut *mut c_char, out_ref: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2016_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))]
- pub fn ostree_raw_file_to_archive_z2_stream(
- input: *mut gio::GInputStream,
- file_info: *mut gio::GFileInfo,
- xattrs: *mut glib::GVariant,
- out_input: *mut *mut gio::GInputStream,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_raw_file_to_archive_z2_stream(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_3")))]
- pub fn ostree_raw_file_to_archive_z2_stream_with_options(
- input: *mut gio::GInputStream,
- file_info: *mut gio::GFileInfo,
- xattrs: *mut glib::GVariant,
- options: *mut glib::GVariant,
- out_input: *mut *mut gio::GInputStream,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_raw_file_to_content_stream(
- input: *mut gio::GInputStream,
- file_info: *mut gio::GFileInfo,
- xattrs: *mut glib::GVariant,
- out_input: *mut *mut gio::GInputStream,
- out_length: *mut u64,
- cancellable: *mut gio::GCancellable,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_checksum_string(
- sha256: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_raw_file_to_archive_z2_stream_with_options(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, options: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_raw_file_to_content_stream(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, out_length: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_checksum_string(sha256: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
- pub fn ostree_validate_collection_id(
- collection_id: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_validate_collection_id(collection_id: *const c_char, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_8", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_8")))]
- pub fn ostree_validate_remote_name(
- remote_name: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_validate_remote_name(remote_name: *const c_char, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_validate_rev(rev: *const c_char, error: *mut *mut glib::GError) -> gboolean;
- pub fn ostree_validate_structureof_checksum_string(
- checksum: *const c_char,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_commit(
- commit: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_csum_v(
- checksum: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_dirmeta(
- dirmeta: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_dirtree(
- dirtree: *mut glib::GVariant,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_file_mode(
- mode: u32,
- error: *mut *mut glib::GError,
- ) -> gboolean;
- pub fn ostree_validate_structureof_objtype(
- objtype: c_uchar,
- error: *mut *mut glib::GError,
- ) -> gboolean;
+ pub fn ostree_validate_structureof_checksum_string(checksum: *const c_char, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_commit(commit: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_csum_v(checksum: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_dirmeta(dirmeta: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_dirtree(dirtree: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_file_mode(mode: u32, error: *mut *mut glib::GError) -> gboolean;
+ pub fn ostree_validate_structureof_objtype(objtype: c_uchar, error: *mut *mut glib::GError) -> gboolean;
}